ensure migrations are run before everything else

This commit is contained in:
Zamitto 2024-05-17 14:02:41 -03:00
parent 689fe5715e
commit d3d9315102
2 changed files with 2 additions and 1 deletions

View file

@ -53,6 +53,8 @@ app.whenReady().then(() => {
);
dataSource.initialize().then(async () => {
await dataSource.runMigrations();
await resolveDatabaseUpdates();
await import("./main");