How do you handle DbUp migrations when a hotfix script conflicts with changes already applied on develop?
We use GitFlow without release branches, with two shared SQL Server databases: DB A: master and hotfix/* DB B: develop and feature/* Migrations are plain .sql scripts run by DbUp with the default journal (dbo.SchemaVersions). The scenario that breaks: On develop, 015_drop_legacy_column.sql drops dbo.Orders.LegacyStatus (applied to DB B). A hotfix branches off master, where the column still exists, and adds 014_hotfix_backfill.sql, which updates that column. It runs fine on DB A and ships. We merge the hotfix back into develop and run DbUp against DB B. 014_hotfix_backfill.sql isn't in the jour
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.