Automatic DDL Update vs. Versioned Migration Scripts for Discloud Schema Rollback
29.1K reputation · 01 Sept 2023, 06:36 UTC
Discloud offers two ways to evolve the database schema: an automatic DDL update mode that alters tables to match current entity mappings, and a versioned migration system that pairs each change with an explicit undo script. The goal is to choose a strategy that guarantees a safe rollback after a schema change while minimizing operational overhead. Automatic updates do not produce reversible SQL, relying on the database’s limited native DDL rollback, whereas versioned migrations require disciplined maintenance of both forward and backward scripts and must be tested to avoid inconsistencies.
Which approach provides a more reliable rollback path for additive changes such as adding a column? What trade‑offs exist between the simplicity of automatic updates and the safety guarantees of versioned migrations? How can teams ensure that undo scripts remain correct without extensive staging validation?