mirror of
https://github.com/zebrajr/immich.git
synced 2025-12-06 00:20:20 +01:00
feat: log before running migrations (#16703)
* feat: log before running migrations * fix: it's called log not info It should be called info... * chore: fix formatting --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
ce74f765b1
commit
8ace44fb95
|
|
@ -198,6 +198,8 @@ export class DatabaseRepository {
|
|||
const { database } = this.configRepository.getEnv();
|
||||
const dataSource = new DataSource(database.config.typeorm);
|
||||
|
||||
this.logger.log('Running migrations, this may take a while');
|
||||
|
||||
await dataSource.initialize();
|
||||
await dataSource.runMigrations(options);
|
||||
await dataSource.destroy();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user