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:
@@ -49,7 +49,9 @@ export class DatabaseService {
|
||||
throw error;
|
||||
}
|
||||
|
||||
await this.databaseRepository.runMigrations();
|
||||
if (process.env.DB_SKIP_MIGRATIONS !== 'true') {
|
||||
await this.databaseRepository.runMigrations();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user