升级后 Liquibase grails 应用程序不启动
Liquibase grails application does not start after upgrade
我将 grails 版本从 3.8 升级到 4。在这一步中,我将 liquibase 升级到 3.10.1。
现在我的应用程序将不再启动。我在这个变更集上收到一个错误:
changeSet(author: "prog1", id: "httpconnector-add-ignoreSSLVerification") {
addColumn(tableName: "inbound_connector") {
column(name: "ignoresslverification ", type: "boolean")
}
addColumn(tableName: "outbound_connector") {
column(name: "ignoresslverification ", type: "boolean")
}
sql("UPDATE outbound_connector set ignoresslverification = true")
sql("UPDATE inbound_connector set ignoresslverification = true")
}
我收到这个错误:
liquibase.exception.MigrationFailedException: Migration failed for change set migrations/changelog.groovy::httpconnector-add-ignoreSSLVerification::ff:
Reason: liquibase.exception.DatabaseException: ERROR: column "ignoresslverification" of relation "outbound_connector" does not exist
Position: 31 [Failed SQL: (0) UPDATE outbound_connector set ignoresslverification = true]
这里有什么问题?
我发现了错误:列名处有一个空白。老版本忽略了这个,新版本没有。
我将 grails 版本从 3.8 升级到 4。在这一步中,我将 liquibase 升级到 3.10.1。 现在我的应用程序将不再启动。我在这个变更集上收到一个错误:
changeSet(author: "prog1", id: "httpconnector-add-ignoreSSLVerification") {
addColumn(tableName: "inbound_connector") {
column(name: "ignoresslverification ", type: "boolean")
}
addColumn(tableName: "outbound_connector") {
column(name: "ignoresslverification ", type: "boolean")
}
sql("UPDATE outbound_connector set ignoresslverification = true")
sql("UPDATE inbound_connector set ignoresslverification = true")
}
我收到这个错误:
liquibase.exception.MigrationFailedException: Migration failed for change set migrations/changelog.groovy::httpconnector-add-ignoreSSLVerification::ff:
Reason: liquibase.exception.DatabaseException: ERROR: column "ignoresslverification" of relation "outbound_connector" does not exist
Position: 31 [Failed SQL: (0) UPDATE outbound_connector set ignoresslverification = true]
这里有什么问题?
我发现了错误:列名处有一个空白。老版本忽略了这个,新版本没有。