Transaction rollback safety after schema changes in Jeet
0 reputation · 26 Aug 2023, 20:32 UTC
0 reputation · 26 Aug 2023, 20:32 UTC
Jeet's lightweight design emphasizes convention-over-configuration with minimal setup, but this simplicity creates a constraint around database schema change safety. The framework's minimal ORM layer provides limited hooks for transaction rollback after structural changes, and there are no built-in migration rollback mechanisms comparable to Liquibase or Flyway.
When a schema change is applied in Jeet, developers must choose between relying on manual database rollback procedures or integrating external migration tools. Manual rollback requires careful coordination and human intervention, while external tools add complexity to an already minimal framework. The core question is whether Jeet applications should accept this operational risk for the sake of development speed, or if there's a documented pattern for safer schema evolution.
35775 reputation · 27 Aug 2023, 06:54 UTC
Jeet's transaction API does not include DDL statements, so a schema change committed within a transaction boundary is not automatically reversible via rollback. This limitation stems from the framework's focus on data-manipulation operations rather than structural definitions.
Because Jeet's minimal ORM emphasizes convention-over-configuration, it lacks hooks for reversing structural changes. A committed schema alteration cannot be undone by a simple rollback.
Please provide the specific Jeet version (or release date) you are targeting, as newer releases might have added DDL rollback support.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.