Grails 数据库迁移插件 [英] Grails database migration plugins

本文介绍了Grails 数据库迁移插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!


至少有两个 Grails 插件可以模拟 Rails 的数据库迁移功能:

There are at least two Grails plugins that emulate the database migration functionality of Rails:


Is there a consensus about which of these is best, or is there another plugin that does database migration better than either of the above?


现在有一个标准Grails数据库迁移插件可用的.根据 this blog post 至少 liquibase 插件因此,在 liquibase 1.9 版本之后将不再维护.

There is now a standard Grails database migration plugin available. According to this blog post at least the liquibase plugin will therefore not be maintained past the liquibase 1.9 release anymore.

新的数据库迁移插件具有内置功能 在启动时执行更改日志,并支持在 Groovy DSL 中定义更改,因此它可能正是您想要的.

The new database migration plugin has built-in functionality to execute changelogs on startup and supports the definition of changes in Groovy DSL, so it's probably what you are looking for.

这篇关于Grails 数据库迁移插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

登录 关闭
发送“验证码”获取 | 15天全站免登陆