Added SKIP_DB_MIGRATION var.
This commit is contained in:
@@ -82,9 +82,11 @@ async function checkV1Tables() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function applyMigration() {
|
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 () => {
|
(async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user