feat: write migrations

This commit is contained in:
Zamitto 2024-08-22 23:50:35 -03:00
parent 52069f7036
commit 89399a6da4
12 changed files with 358 additions and 92 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",
@ -25,5 +24,4 @@ export const dataSource = new DataSource({
],
synchronize: false,
database: databasePath,
migrations,
});