mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue