Liquibase for DB Migrations

I have just now discovered a very nice-looking tool for database migrations: Liquibase https://www.liquibase.org/ With Liquibase, you can model your DB increments as XML files that will translate to as many as 13 different databases. A sample DB increment (taken from the Liquibase manual):
<pre class="wp-block-syntaxhighlighter-code">
<!--
  ALTER TABLE PERSON MODIFY COLUMN firstname VARCHAR(5000);
  -->

    


<!--
  ALTER TABLE ADDRESS ADD CONSTRAINT fk_address_person
  FOREIGN KEY (person_id) REFERENCES person (id);
  -->


<!--
  UPDATE ProductSettings SET property = 'vatCategory'
  WHERE property = 'vat';
  -->

    
    property='vat'

</pre>
…and so on. I guess it’s about time to contact the Liquibase folks and ask for cooperation! A fully integrated solution involving database schema management, database schema migration, and jOOQ’s source code generation seem to be the perfect toolset for a Java database developer

3 thoughts on “Liquibase for DB Migrations

    1. That’s a nice-looking framework. I’ll certainly have to get into it, as well. Tell me about your experience, once you have started using any of those migration frameworks along with jOOQ!

Leave a Reply