prevent startup if migrating not possible

This commit is contained in:
Niki Wix Skaarup 2025-04-06 02:29:01 +02:00
parent f66fdc34f1
commit 24d34597ff
Signed by: nikiskaarup
GPG key ID: FC2F1B116F6E788C
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ import { drizzle } from 'drizzle-orm/bun-sqlite';
import { createWrappedTimer } from '../wrapped-timer';
function initDb() {
global.db.exec('PRAGMA journal_mode = delete');
// global.db.exec('PRAGMA journal_mode = delete');
global.db.exec('PRAGMA journal_mode = WAL');
global.db.exec('PRAGMA synchronous = NORMAL');
global.db.exec('PRAGMA auto_vacuum = INCREMENTAL');