mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
ensure migrations are run before everything else
This commit is contained in:
parent
689fe5715e
commit
d3d9315102
@ -22,5 +22,4 @@ export const createDataSource = (options: Partial<SqliteConnectionOptions>) =>
|
||||
|
||||
export const dataSource = createDataSource({
|
||||
migrations: migrations,
|
||||
migrationsRun: true,
|
||||
});
|
||||
|
@ -53,6 +53,8 @@ app.whenReady().then(() => {
|
||||
);
|
||||
|
||||
dataSource.initialize().then(async () => {
|
||||
await dataSource.runMigrations();
|
||||
|
||||
await resolveDatabaseUpdates();
|
||||
|
||||
await import("./main");
|
||||
|
Loading…
Reference in New Issue
Block a user