News for hackers. Stuff that matters.
Re:Sqitch - Sane database change management by dragonwriter on Monday August 31, 2015 @12:03PM (#10147427)
> We don't write migrations for our C++, so why the heck are we writing migrations for our DBs?

Because your DB is a datastore as well as a store of code and structure, and when you apply changes to your production DB, they generally have to preserve the data that is already in the DB.

That means that the transition is the important thing to describe and test. Inferring it from create scripts is possible, but it doesn't really gain you anything. And doing it by some process that infers some of the changes but also leaves you to directly script others seems to be strictly inferior to describing the transitions explicitly and not leaving something to infer them partially with you filling in the gaps.

It sounds like you are describing a process that leaves you more work to do so that you can be less close to the important part of what the is actually be done, which seems like losing all around -- though it certainly seems like the kind of losing that is inexplicably popular in the enterprise world.

There are no comments on this comment yet.