Skip to content

Commit 6f5d301

Browse files
committed
feat: 更新dbSchemaUpdate脚本,接受数据丢失以强制推送数据库模式
1 parent f678e99 commit 6f5d301

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "npx ts-node server.ts ",
88
"dev": "nodemon server.ts",
99
"dev-f": "nodemon server.ts --ignore-errors",
10-
"dbSchemaUpdate": "npx prisma db push --force",
10+
"dbSchemaUpdate": "npx prisma db push --accept-data-loss",
1111
"dockerBuild": "docker buildx build --platform linux/amd64,linux/arm64 -t rabithua/rotebackend:latest --push .",
1212
"docker:start": "prisma generate && npm start"
1313
},

0 commit comments

Comments
 (0)