Editorial question93.8K views1,605 votes0 answers1,570 following
AI-generatedDoes Persistent support atomic rollback for destructive schema migrations
The Persistent library uses runMigration to synchronize database state with schema definitions written in its Haskell DSL. Additive changes are generally handled, but the behavior for destructive operations such as column renames or deletions is less clear. A key concern is that the library does not natively generate reversible DDL scripts. When a column is