Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to: database versioning with maven2?

I am finding any maven plugin for versioning database changes.

like image 340
eugenn Avatar asked May 11 '10 09:05

eugenn


1 Answers

There are a few plugins that offer some support for this task:

  • Maven LiquiBase Plugin
  • Maven Database Migration Plugin
  • DbMaintain Maven Plugin (a plugin for DbMaintain, the famous tool from Unitils)

I don't have much experience with them, we currently use a custom tool to apply our change scripts. But the Maven Database Migration Plugin is a serious candidate to replace it. LiquiBase is pretty famous but also different, changes are described in a generic XML format. About DbMaintain, it works well (in Unitils) but I've never tested the wrapper plugin mentioned above.

like image 159
Pascal Thivent Avatar answered Sep 23 '22 08:09

Pascal Thivent