feat: write migrations

This commit is contained in:
Zamitto 2024-08-22 23:50:35 -03:00
parent cc9d254a32
commit 81aa25fa52
12 changed files with 270 additions and 93 deletions

View file

@ -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,
});