Techniques to keep database schema up to date
-
I know two techniques to keep database schema up to date for all developers. One is rails migrations. And the other is Hibernate's SchemaUpdate. Can you review more techniques to keep the DB schema up to date?
-
Answer:
I think its very hard to find a ready made, magical tool that maintain your schema changes, i think its not hard to implement your custom tool and design the updates incrementally and make your own versioning system of the database. My suggestion (and i do that) is to make a small updater tool that take the update scripts from the new version of the application and apply the required updates depending on the previous DB version that is saved somewhere, the update scripts should be robust and well-written and don't make a damage for the old data. Because DDL changes are not inversable (You can't use transactions) i suggest to take a backup for the database before the update process and restore it if the update failed or delete it.
Chi-Lan at Stack Overflow Visit the source
Related Q & A:
- How To Get All Components Based On A Schema And From A Particular Publication?Best solution by Tridion
- How to add inline xml schema using jaxb?Best solution by bighow.org
- How to Convert Json date string to more readable date format?Best solution by SharePoint
- Does Restore "From database" restore from the most recent backup of the database or the actual live database?Best solution by Database Administrators
- Why is it necessary for marketing managers to keep up to date with relevant technological developments?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.