Skip to content

Commit

Permalink
Added SKIP_DB_MIGRATION var.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Mar 1, 2025
1 parent 05db1a8 commit 9a87442
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/check-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ async function checkV1Tables() {
}

async function applyMigration() {
console.log(execSync('prisma migrate deploy').toString());
if (!process.env.SKIP_DB_MIGRATION) {
console.log(execSync('prisma migrate deploy').toString());

success('Database is up to date.');
success('Database is up to date.');
}
}

(async () => {
Expand Down

0 comments on commit 9a87442

Please sign in to comment.