
jake at vapourforge
Feb 6, 2009, 3:05 AM
Post #8 of 12
(935 views)
Permalink
|
|
Re: Simple test for database schema version?
[In reply to]
|
|
Michael Monnerie wrote: > On Freitag 06 Februar 2009 Paul J Stevens wrote: > >> Since schema changes in mysql are not atomic, I don't see how that >> could be done reliably. >> > > insert (name,value) = 'go_to_version','2.3.5' > before the script starts, and remove that if everything went OK. And if > something broke, you can see both old and new versions to debug. > > Because anyway, if it's not atomic and the script breaks, you'll have a > mess in case of problems. That can't be solved automatically, right? > > mfg zmi > I'm for it, perhaps even a "general info" table. It wouldn't be absolutely guaranteed but it would be helpful when looking at old dumps and the like.
|