September 2018
Intermediate to advanced
386 pages
11h 17m
English
The way Liquibase works is by making an entry into the DATABASECHANGELOGLOCK table when it starts to migrate a database. If the migration fails, sometimes this lock is not released. In such a case, we need to explicitly truncate that table. We have written a lambda that does just that for you. Its configuration is found in /resources/functions/databaseMigratorFixer.yml:
databaseMigratorFixer: handler: com.packt.serverless.kotlin.letspoll.handlers.DatabaseMigratorFixer environment: databaseUsername: ${env:LP_DATABASE_USERNAME} databasePassword: ${env:LP_DATABASE_PASSWORD} databaseUrl: { Fn::GetAtt: [ "letsPollDatabase", "Endpoint.Address" ] } databasePort: ${env:LP_DATABASE_PORT} databaseName: ${env:LP_DATABASE_NAME} ...
Read now
Unlock full access