Enable WAL mode on the database

This commit is contained in:
Alex Gleason 2023-10-11 22:30:07 -05:00
parent 7ec028465e
commit 149f8f6f04
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import { Kysely, sql } from '@/deps.ts';
export async function up(db: Kysely<any>): Promise<void> {
await sql`PRAGMA journal_mode = WAL`.execute(db);
}
export async function down(db: Kysely<any>): Promise<void> {
await sql`PRAGMA journal_mode = DELETE`.execute(db);
}