How to: database versioning with maven2?

一曲冷凌霜 提交于 2019-12-03 07:16:49

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!