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:
@@ -198,6 +198,8 @@ export class DatabaseRepository {
|
|||||||
const { database } = this.configRepository.getEnv();
|
const { database } = this.configRepository.getEnv();
|
||||||
const dataSource = new DataSource(database.config.typeorm);
|
const dataSource = new DataSource(database.config.typeorm);
|
||||||
|
|
||||||
|
this.logger.log('Running migrations, this may take a while');
|
||||||
|
|
||||||
await dataSource.initialize();
|
await dataSource.initialize();
|
||||||
await dataSource.runMigrations(options);
|
await dataSource.runMigrations(options);
|
||||||
await dataSource.destroy();
|
await dataSource.destroy();
|
||||||
|
|||||||
Reference in New Issue
Block a user