import { Kysely, sql } from 'kysely'; import { Conf } from '@/config.ts'; export async function up(db: Kysely): Promise { if (Conf.db.dialect === 'sqlite') { await sql`CREATE VIRTUAL TABLE events_fts USING fts5(id, content)`.execute(db); } } export async function down(db: Kysely): Promise { await db.schema.dropTable('events_fts').ifExists().execute(); }