开发者

Liquibase Grails database migrations

开发者 https://www.devze.com 2023-01-30 06:04 出处:网络
I followed the excellent tutorial on http://www.jakusys.de/blog/2008/09/grails-and-liquibase-how-to-use/

I followed the excellent tutorial on http://www.jakusys.de/blog/2008/09/grails-and-liquibase-how-to-use/

in regard to my dev database on local machine where grails is installed. All went well.

Now I want to deploy grails war to remote website where I setup mysql on remote server.

But I am at loss now. How do I apply the command: grails migrate

so that the now the remote database has the DATABASECHANGELOG table.

In the database there is some production data that I will manually copy from my local mysql to fresh install of remo开发者_开发知识库te mysql database while most of other tables are fresh and have no data. I am waiting for reply to this question to make sure I don't mess up something before actually launch my grails application on remote production server.


You can migrate a remote DB from your computer, using grails.env variable, like:

grails migrate -Dgrails.env=production
0

精彩评论

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