Why migration tools miss real schema drift in production databases
A common but overlooked problem in database management is schema drift, where production databases silently diverge from what migration files describe. Unlike code repositories, databases are persistent entities that can be altered through emergency console commands, third-party tools, or manual index additions — none of which leave a trace in migration history. Tools like Flyway's validate command only verify that migration files haven't been edited after being applied, not whether the actual database schema matches those files. This means CI pipelines can stay green and all checks can pass even while a production table contains columns or structures that exist nowhere in version control. The core issue is a fundamental asymmetry: for code, history defines truth, but for a database, the only source of truth is the live database itself.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in