我对 Grails 域类进行了更改并运行
grails db-gorm-diff 2012-11-20-domain-class-change.groovy --add(显然还有另一个名字)

并且从 Liquibase 收到“更改锁定”错误:
Error executing bootstraps: liquibase.exception.LockException: Could not acquire change log lock. Currently locked by computer-name.local […]
因此(似乎很愚蠢)按照 an aged thread dealing with a similar problem with the Autobase plugin 中的建议,我删除了更改日志锁定表中的行:
mysql> delete from DATABASECHANGELOGLOCK;
现在得到这个美丽的 Liquibase 错误:
Error executing bootstraps: liquibase.exception.DatabaseException: Empty result set, expected one row
这清楚地告诉我,改变这一点为时已晚,我不应该从表中删除该行。

我现在能做些什么呢?

最佳答案

插件中有一个脚本 - 使用 http://grails-plugins.github.com/grails-database-migration/docs/manual/ref/Maintenance%20Scripts/dbm-release-locks.html

关于database - Grails 中的 Liquibase : “Empty result set, expected one row” ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13484305/

10-16 04:14