mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
12 lines
407 B
TypeScript
12 lines
407 B
TypeScript
import { Kysely, sql } from '@/deps.ts';
|
|
|
|
export async function up(db: Kysely<any>): Promise<void> {
|
|
await sql`PRAGMA foreign_keys = ON`.execute(db);
|
|
await sql`PRAGMA auto_vacuum = FULL`.execute(db);
|
|
await sql`VACUUM`.execute(db);
|
|
}
|
|
|
|
export async function down(db: Kysely<any>): Promise<void> {
|
|
await sql`PRAGMA foreign_keys = OFF`.execute(db);
|
|
await sql`PRAGMA auto_vacuum = NONE`.execute(db);
|
|
}
|