mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
ensure migrations are run before everything else
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user