A desktop coding agent with free access to frontier models.
TypeScript
/**
* Idempotently repair additive schema drift from historical hand-written migrations.
*
* Usage:
* DATABASE_URL=mysql://root:[email protected]:3306/omnirush_den \
* node --import tsx scripts/ensure-schema-repairs.ts
*/
import "../src/load-env.ts"
import { ensureSchemaRepairs } from "../src/schema-repairs.ts"
import { createExecutor } from "./db-executor.ts"
async function main() {
const executor = await createExecutor()
try {
await ensureSchemaRepairs(executor)
} finally {
await executor.close()
}
}
main().catch((error) => {
console.error(error instanceof Error ? error.message : error)
process.exit(1)
})