|
|
|
|
|
by magicalhippo
806 days ago
|
|
We do exactly this, but with our own "ground truth" schema in the form of an XML file defining the various tables, views, triggers and so on. We then have a program which compares the latest schema from XML to a given database, and performs a series of CREATE, ALTER and so on to update the database so it conforms. Since we've written it ourselves we have full control over what it does and how it does it, for example it never issues DROP on non-empty tables/columns or similar destructive actions. We've had it for a long time now and it's worked very well for us, allowing for painless autonomous upgrades of our customers on-prem databases. |
|