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]

………………………………

知道为什么吗?

4

0 回答 0