Database Engineering Subagent · Forward + Rollback Proven
Test every AI-generated SQL migration and backfill on a disposable Linux VM first.
Never ship an untested ALTER TABLE or backfill script to staging. Send your schema DDL to TESI’s isolated Linux computer—TESI seeds legacy edge-case rows, runs up.sql, verifies row/sum conservation and foreign-key integrity, tests down.sql rollback, and returns SHA-256 verified files from $10 USD.
1. Verify forward migration, NULL backfills & clean rollback via CLI or MCP
curl -fsS https://toolsenabled.ai/agents/tesi-sdk.mjs -o tesi-sdk.mjs
node tesi-sdk.mjs work \
"Given schema v1 (users, invoices with nullable currency), write 002_up.sql and 002_down.sql backfilling currency='USD' and adding NOT NULL + CHECK(amount_cents >= 0). Seed 5 edge-case rows in SQLite, verify PRAGMA foreign_key_check, row counts, sum conservation, and exact v1 round-trip rollback, and return path=... files." \
--effort medium
Questions
SQL migration verification FAQ.
Why delegate SQL migration authoring and testing to TESI instead of trusting raw LLM SQL output?
Unchecked LLM migrations frequently break foreign keys, fail on NULL legacy rows, or corrupt data on rollback. On TESI, Work creates a real database on an isolated Linux VM, seeds edge-case rows, executes up, backfill, idempotency, and down migrations, and returns the tested SQL + test script.
Does TESI need access to our live production database?
Never. Pack only your schema DDL files locally (secret-checked via sourceDir or --pack-project) and have TESI generate synthetic edge-case fixtures on its isolated VM.
How is SQL migration verification billed?
Prepaid one-time packs start at $10 USD with zero monthly subscription and zero idle database compute fees.
Ship safer migrations