Enable WAL mode on the database
This commit is contained in:
parent
7ec028465e
commit
149f8f6f04
|
@ -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);
|
||||||
|
}
|
Loading…
Reference in New Issue