This post originated from an RSS feed registered with Java Buzz
by Peter Karich.
Original Post: Migrate to Liquibase
Feed Title: Java and more ...
Feed URL: https://karussell.wordpress.com/category/java/feed/
Feed Description: Just another weblog. Its about my developer experiences with Java in general. In detail I will blog about NetBeans, Eclipse, Design Patterns, News, Web Frameworks and other tools. My focus will be open source tools, which make the life of a Java developer easier.
As shown in my last blog entry liquibase is very helpful to migrate even ‘living’-databases.
But how to migrate to liquibase? I propose the following steps:
Backup all you data! Really do it! E.g. with xstream. First try the following steps on a test db, of course!
Generate your initial changelog with liquibase:
liquibase --defaultsFile=src/main/resources/liquibase.properties generateChangeLog
Check the xml file [...]