# Isolated SQLite & SQL Schema Migration, Backfill & Rollback Verification API (`https://toolsenabled.ai/agents/e2e-database-migration-sql-verification-api/`)

Verify AI-generated SQL schema migrations (`up.sql` + `down.sql`), NULL legacy backfills, `PRAGMA foreign_key_check`, and sum/row conservation against synthetic fixtures on TESI's isolated Linux VM (`1 vCPU, 2 GB RAM, 4 GB disk`) before touching staging or production.

- **Zero live DB exposure:** Send only schema DDL (`sourceDir` blocks `.env*` and credentials locally).
- **Prepaid from $10 USD:** Zero monthly subscription, `TESI-Topup-Mode: manual` spend cap.

```bash
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
```

- **Fund a $10 USD Key:** [`https://toolsenabled.ai/agents/?agentPack=1000#agent-funding`](https://toolsenabled.ai/agents/?agentPack=1000#agent-funding)
