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
52069f7036
commit
89399a6da4
12 changed files with 358 additions and 92 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",
|
||||
|
@ -25,5 +24,4 @@ export const dataSource = new DataSource({
|
|||
],
|
||||
synchronize: false,
|
||||
database: databasePath,
|
||||
migrations,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue