Added SKIP_DB_MIGRATION var.
This commit is contained in:
@@ -82,10 +82,12 @@ async function checkV1Tables() {
|
||||
}
|
||||
|
||||
async function applyMigration() {
|
||||
if (!process.env.SKIP_DB_MIGRATION) {
|
||||
console.log(execSync('prisma migrate deploy').toString());
|
||||
|
||||
success('Database is up to date.');
|
||||
}
|
||||
}
|
||||
|
||||
(async () => {
|
||||
let err = false;
|
||||
|
||||
Reference in New Issue
Block a user