Database schema drift recovery after partial migration failure in Prisma
Problem Context Prisma Migrate maintains a _prisma_migrations table that tracks which migrations have been applied to the database. This table includes an applied column that indicates whether a migration has completed successfully. Unresolved Behavior When a migration fails partway through execution—particularly one that includes multiple DDL statements—the