rtweeks / xmigra

Database evolution management tool
Other
5 stars 3 forks source link

`promote` tool for Git migration curation #33

Open rtweeks opened 5 years ago

rtweeks commented 5 years ago

Issue #31 and the fix in PR #32 revealed a gap in maintaining the immutability of the migration chain in a Git repository network. A more reliable process would be:

Setting this up would involve using a branch name different than master in the xmigra-master Git attribute for the database.yaml file -- possibly something like prod-db-chain. It will probably also be necessary to mark a branch as the "premaster" to prevent accidentally promoting unmerged development changes to the database schema's master branch.

rtweeks commented 5 years ago

The git commit-tree command might be helpful to build a production migration chain branch that purely represents the sequence of trees promoted with this tool.