import { db } from './index.js'; // The heavy lifting is idempotent DDL inside schema.sql, which db() runs on // first handle. This module exists as an explicit hook for future migrations // (numbered .sql files applied via a schema_version row) and to be called // from hooks.server.ts so boot-time failures surface early. export function migrate(): void { db().prepare('SELECT 1').get(); }