mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-01 08:34:53 +02:00
disable auto backup on migration with env var
This commit is contained in:
parent
d22dcfb464
commit
d215a12f5a
1 changed files with 4 additions and 2 deletions
|
@ -124,8 +124,10 @@ async function executeScripts() {
|
|||
console.log(`Running migration ${migration.version}`);
|
||||
|
||||
try {
|
||||
// Backup the database before running the migration
|
||||
backupDb();
|
||||
if (!process.env.DISABLE_BACKUP_ON_MIGRATION) {
|
||||
// Backup the database before running the migration
|
||||
backupDb();
|
||||
}
|
||||
|
||||
await migration.run();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue