Squashed 'src/pi/' content from commit d981de122
git-subtree-dir: src/pi git-subtree-split: d981de1229ef899957bbe968bc8dcda02a21f477
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user