update to wal mode
All checks were successful
backend-action / build-image (push) Successful in 58s

This commit is contained in:
2024-05-18 09:40:43 +07:00
parent 99f9531d32
commit 0f6ec77dc0
3 changed files with 8 additions and 1 deletions

View File

@@ -4,5 +4,6 @@ import Database from "better-sqlite3";
import * as schema from "./schema";
const sqlite = new Database("sqlite.db");
sqlite.pragma("journal_mode = WAL");
export const db = drizzle(sqlite, { schema });
migrate(db, { migrationsFolder: "drizzle" });