Revert "feat: write migrations"
Some checks failed
Release / build (ubuntu-latest) (push) Has been cancelled
Release / build (windows-latest) (push) Has been cancelled

This reverts commit 81aa25fa52.
This commit is contained in:
Zamitto 2024-08-23 00:07:50 -03:00
parent 81aa25fa52
commit 5fcca9888d
12 changed files with 93 additions and 270 deletions

View file

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