Squashed 'src/pi/' content from commit d981de122

git-subtree-dir: src/pi
git-subtree-split: d981de1229ef899957bbe968bc8dcda02a21f477
This commit is contained in:
2026-09-14 10:21:58 -04:00
commit 497034b682
1669 changed files with 397627 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { readFile } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import type { SqliteDatabase } from "./types.ts";
export async function applyInitialSchema(db: SqliteDatabase): Promise<void> {
const migration = await readFile(fileURLToPath(new URL("./migrations/001_initial.sql", import.meta.url)), "utf8");
db.exec(migration);
}