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:
bo0tzz 2025-03-07 22:15:06 +01:00 committed by GitHub
parent ce74f765b1
commit 8ace44fb95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();