| Generate Prisma clientgenerate_client | ready | Regenerate the Prisma client from the checked-in schema before migration checks. | corepack pnpm --filter @searchops/db db:generate |
| Check migration statuspreflight_migration_status | ready | Confirm the target database and checked-in migrations are in a deployable state. | corepack pnpm db:migrate:status |
| Deploy migrationsdeploy_migrations | ready | Apply checked-in migrations through Prisma migrate deploy. | corepack pnpm db:migrate:deploy |
| Verify migration status after deploypostdeploy_migration_status | ready | Confirm there are no pending, failed, or divergent migrations after deploy. | corepack pnpm db:migrate:status |