简体   繁体   English

Grails-Quartz插件持久性的数据库迁移

[英]Grails - DB migration for Quartz plug-in persistence

We would like to use the Quartz plug-in persistent mode for working in a cluster. 我们想使用Quartz插件持久模式在集群中工作。 Our DB schema is maintained using the DB-migration plug-in, and therefore we can not use the provided SQL script for updating the DB. 我们的数据库架构是使用DB-migration插件维护的,因此我们无法使用提供的SQL脚本来更新数据库。

Is there a db-migration script (ie - a Groovy file) that creates the tables, that we can use? 是否有一个db-migration脚本(即Groovy文件)创建我们可以使用的表? Can someone that managed to run the migration share one with us? 能够运行迁移的人可以与我们共享一个吗?

Alternatively - is there another way to create the tables, when working in DB migration mode? 或者-在数据库迁移模式下工作时,还有另一种创建表的方法吗? Thanks 谢谢

Maybe instead of trying to convert the scripts you could use them directly by either considering this: http://www.liquibase.org/manual/formatted_sql_changelogs or this:http://www.liquibase.org/manual/custom_sql_file. 也许不用尝试转换脚本,而可以考虑以下内容直接使用它们:http://www.liquibase.org/manual/formatted_sql_changelogs或http://www.liquibase.org/manual/custom_sql_file I think you can use liquibase's include tag with the sql change log. 我认为您可以在SQL更改日志中使用liquibase的include标记。 Basically just copy and paste the contents and run them using one of the 2 methods I listed above. 基本上,只需复制并粘贴内容,然后使用我上面列出的2种方法之一运行它们。 If you use the second method, maybe you don't need to copy and paste anything and just directly reference it? 如果使用第二种方法,也许您不需要复制和粘贴任何内容,而直接引用它即可?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM