mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
parent
81aa25fa52
commit
5fcca9888d
12 changed files with 93 additions and 270 deletions
|
@ -10,6 +10,7 @@ import {
|
|||
} from "@main/entity";
|
||||
|
||||
import { databasePath } from "./constants";
|
||||
import * as migrations from "./migrations";
|
||||
|
||||
export const dataSource = new DataSource({
|
||||
type: "better-sqlite3",
|
||||
|
@ -22,6 +23,7 @@ export const dataSource = new DataSource({
|
|||
DownloadQueue,
|
||||
UserAuth,
|
||||
],
|
||||
synchronize: false,
|
||||
synchronize: true,
|
||||
database: databasePath,
|
||||
migrations,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue