mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
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:
parent
f0f9053115
commit
466451abc9
6 changed files with 29 additions and 16 deletions
|
|
@ -49,7 +49,9 @@ export class DatabaseService {
|
|||
throw error;
|
||||
}
|
||||
|
||||
await this.databaseRepository.runMigrations();
|
||||
if (process.env.DB_SKIP_MIGRATIONS !== 'true') {
|
||||
await this.databaseRepository.runMigrations();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue