开发者

How to: database versioning with maven2?

I am finding any 开发者_C百科maven plugin for versioning database changes.


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.


Here is one more, it's simple to use and has excellent support for Mysql stored procedures:

Flyway Maven Plugin


I used this one http://jsoftware.org/maven-dbpatch-plugin

It supports rollback patches too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜