docs(spikes): Deno 2.9.7 + TS 7 compatibility spike and ADR-004

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
rootandClaude Fable 5.1 committed 2026-09-27 18:24:08 +08:00
1 parent fe3613ee8f
commit cf85481d95
147 files changed
+15213

No files matched your search

@@ -0,0 +1,10 @@
import { type Kysely, sql } from "kysely";
export async function up(db: Kysely<any>) {
await db.schema.createTable("items").ifNotExists()
.addColumn("id", "bigserial", (c) => c.primaryKey())
.addColumn("title", "text", (c) => c.notNull())
.addColumn("meta", "jsonb")
.addColumn("created_at", "timestamptz", (c) => c.notNull().defaultTo(sql`now()`))
.execute();
}
export async function down(db: Kysely<any>) { await db.schema.dropTable("items").execute(); }
@@ -0,0 +1,5 @@
import type { Kysely } from "kysely";
export async function up(db: Kysely<any>) {
await db.schema.createIndex("items_title_idx").ifNotExists().on("items").column("title").execute();
}
export async function down(db: Kysely<any>) { await db.schema.dropIndex("items_title_idx").execute(); }