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

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

问题描述

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

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

  • Autobase
  • Liquibase

是否有共识是哪些是最好的,

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数据库迁移插件。根据此博客帖子,至少是liquibase插件

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆