feat(server): env variable to skip migrations on startup (#9069)

* env variable to skip migrations

* update docs

* update env doc
This commit is contained in:
Mert 2024-04-24 22:52:38 -04:00 committed by GitHub
parent f0f9053115
commit 466451abc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 16 deletions

View file

@ -49,7 +49,9 @@ export class DatabaseService {
throw error;
}
await this.databaseRepository.runMigrations();
if (process.env.DB_SKIP_MIGRATIONS !== 'true') {
await this.databaseRepository.runMigrations();
}
});
}