mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
ensure migrations are run before everything else
This commit is contained in:
parent
689fe5715e
commit
d3d9315102
2 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue