Grails启用自动迁移(Grails 2.2.2)

时间:2013-06-13 19:13:14

标签: grails gorm grails-plugin grails-2.0

我正在测试Grails作为我们工作场所的潜在框架。我正在使用Grails网站上的教程来管理数据库:

http://grails.github.io/grails-howtos/en/manageDatabases.html

我已经成功地完成了以下步骤:

启用自动迁移

之后如果我使用grails run-app重启服务器,我会收到一条很长的错误消息:

Error 2013-06-13 12:03:39,639 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: liquibase.exception.MigrationFailedException: Migration failed for change set 2012-02-01-initial-database.groovy::1371149615719-2::jable (generated):

Error: Error executing SQL ALTER TABLE BOOK DROP COLUMN VERSION: Cannot
drop last column "VERSION"; SQL statement:
ALTER TABLE BOOK DROP COLUMN VERSION [90084-164]
Message: Error executing SQL ALTER TABLE BOOK DROP COLUMN VERSION: Cannot drop last column "VERSION"; SQL statement:
ALTER TABLE BOOK DROP COLUMN VERSION [90084-164]

....等等......

任何想法为什么?

0 个答案:

没有答案
相关问题