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