Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/wb/src/scripts/prismaScripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PrismaScripts {

deployForce(project: Project): string {
const dirPath = getDatabaseDirPath(project);
// `prisma migrate reset` sometimes fails if the existing database schema, so we remove it first.
// `prisma migrate reset` can fail depending on the state of the existing database, so we remove it first.
// Don't skip "migrate deploy" because restored database may be older than the current schema.
return `rm -Rf ${dirPath}/prod.sqlite3*; PRISMA migrate reset --force --skip-seed && rm -Rf ${dirPath}/prod.sqlite3*
&& litestream restore -config litestream.yml -o ${dirPath}/prod.sqlite3 ${dirPath}/prod.sqlite3 && ls -ahl ${dirPath}/prod.sqlite3 && ALLOW_TO_SKIP_SEED=0 PRISMA migrate deploy`;
Expand Down