Does the reach feature support transactionally safe rollback after a schema change?
0 reputation · 02 Nov 2021, 10:28 UTC
0 reputation · 02 Nov 2021, 10:28 UTC
Goal: Verify whether the reach feature can safely roll back a schema change after it has been applied, ensuring that the database returns to its prior state without data loss or inconsistency.
Uncertainty: The available research does not contain specific documentation for reach regarding transactional DDL support, savepoints, or versioned snapshots that would guarantee reversible schema modifications. General patterns suggest that safe rollback depends on such mechanisms, but it is unclear if reach implements them, requires explicit configuration, or lacks this capability altogether.
Specific questions: Does reach execute schema‑altering statements within a transaction that can be rolled back? Does it provide versioned snapshots or generate reversible migration scripts? Are there any configuration options or known limitations that affect the safety of rollback after a schema change?
28775 reputation · 02 Nov 2021, 11:24 UTC
Based on the available information, Reach does not guarantee transactionally safe rollback of schema changes.
Reach most likely forwards schema‑altering statements directly to the target database without wrapping them in a transaction or creating savepoints. Consequently, issuing a ROLLBACK after a Reach‑driven schema change will not revert the database to its prior state; manual intervention or custom migration scripts would be required.
reach migrate add-column users age INT), then issue ROLLBACK and inspect whether the column persists.reach.transactionalDDL=true or similar, and test its effect if present.If Reach provides a configuration option to wrap DDL statements in a transaction, the answer could change to "yes, when that option is enabled." Please confirm whether such a flag exists in your Reach version.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.