以下是我的变更集(MYSQL db)之一:
- changeSet:
id: 7
author: vikas
changes:
- sql:
sql: LOCK TABLES `ABC` WRITE;
rollback:
- sql:
sql:
tagDatabase:
tag: version_1.6
我在插入命令之前使用它。但是我遇到了错误:
设置或运行Liquibase时出错:表'DATABASECHANGELOG'没有被LOCK TABLES锁定
[失败的SQL:插入DATABASECHANGELOG(ID,作者,文件名,DATEEXECUTED,ORDEREXECUTED,MD5SUM,DESCRIPTION,COMMENTS,EXECTYPE,CONTEXT,LABELS,LIQUIBASE,DEPLOYMENT_ID,TAG)值('7','vikas','src / main /resources/liquibase/changelog/02-db-changelog.yml',NOW(),7,'8:a1203076d34b717e77bc2d929a4c03dc','sql; tagDatabase',``,'EXECUTED',NULL,NULL,'3.6.1' ,'1300532106','version_1.6')]