What problem does it solve?
Post-migration checks to ensure new tables are included in truncation lists, run db:custom-sql, and optionally verify that tables exist after drizzle migrations.
Core Features & Use Cases
- Diff new migration tables against TRUNCATE_ALL_TABLES_SQL and DELETE_ALL_TABLES_SQL to catch missing entries and ensure test-utils.ts integrity.
- Provide exact edits for test-utils.ts in reverse-FK order when new tables are not present in the lists.
- Run db:custom-sql after drizzle-kit push to apply custom extensions, triggers, and indexes.
- Optionally verify new tables exist in the database and report results.
- Produce a concise summary of new tables, list status, custom-sql execution, and verification results.
Quick Start
After completing a migration, run the migration-close check to validate truncation lists, apply custom SQL, and optionally verify table existence.