import { Kysely } from 'kysely'; export async function up(db: Kysely): Promise { await db.schema.dropTable('relays').execute(); } export async function down(db: Kysely): Promise { await db.schema .createTable('relays') .addColumn('url', 'text', (col) => col.primaryKey()) .addColumn('domain', 'text', (col) => col.notNull()) .addColumn('active', 'boolean', (col) => col.notNull()) .execute(); }