import type { Knex } from "knex"; export async function up(knex: Knex): Promise { const exists = await knex.schema.hasTable("sdk_runtime_state"); if (exists) { return; } await knex.schema.createTable("sdk_runtime_state", (table) => { table.string("key").primary(); table.text("value").notNullable(); table.string("updated_at").notNullable(); }); } export async function down(knex: Knex): Promise { await knex.schema.dropTable("sdk_runtime_state"); }