现在我有这个问题:在运行时,使用MySQL都可以正常工作。但是在测试中,我得到:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in com.bluerbn.wallet.infra.SpringTestConfiguration: Invocation of init method failed; nested exception is org.flywaydb.core.internal.command.DbMigrate$FlywayMigrateException:
Migration V9__fixIndex.sql failed
------------------------------------------------
SQL State : 42S22
Error Code : 42122
Message : Column "INDEX" not found; SQL statement:
ALTER TABLE table1 DROP INDEX ACC_INDEX [42122-200]
Location : db/migration/V9__fixIndex.sql (/Users/.../resources/db/migration/V9__fixIndex.sql)
Line : 1
Statement : ALTER TABLE table1 DROP INDEX ACC_INDEX
这是一个旧脚本,在升级之前运行良好。
versions:
我正在从gradle 4升级到6。这迫使我升级许多东西,例如spring,h2,mySql连接器等。现在我遇到了这个问题:在运行时,使用MySQL都可以正常工作。但是...
ALTER TABLE tableName DROP INDEX indexName
。在1.4.199和更早版本中,此无效(对于H2)命令在所有模式下均被错误接受。