You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We operate multiple application in a single database. The database is upgraded using Liquibase with each application having it's own change log table.
Starting with Liquibase version > 4.20.0, the update command is no longer working with change log table name other than DATABASECHANGELOG.
The update command does ignore the parameter databaseChangeLogTableName or the environment variable LIQUIBASE_CHANGELOG_TABLENAME.
Steps To Reproduce
Apply database changes using Liquibase's update command with parameter databaseChangeLogTableName or environment variable LIQUIBASE_CHANGELOG_TABLENAME. Use Liquibase version 4.20.0
Upgrade Liquibase to a version > 4.20.0 (for example 4.21.1 or 4.23.0)
Run another update command with the new Liquibase version
After the upgrade of the Liquibase version, the parameter databaseChangeLogTableName is ignored, and the change log is verified against/written to the default change log table DATABASECHANGELOG.
Please use the following commands to reproduce the issue:
The environment variable names should be LIQUIBASE_DATABASE_CHANGELOG_TABLE_NAME and LIQUIBASE_DATABASE_CHANGELOG_LOCK_TABLE_NAME. Can you try it again with those spellings?
@bwonisch - I'm checking back to see if the information provided by @wwillard7800 addressed your issue. Please let us know when you get a chance. Thanks!
Search first
Description
We operate multiple application in a single database. The database is upgraded using Liquibase with each application having it's own change log table.
Starting with Liquibase version > 4.20.0, the update command is no longer working with change log table name other than DATABASECHANGELOG.
The update command does ignore the parameter databaseChangeLogTableName or the environment variable LIQUIBASE_CHANGELOG_TABLENAME.
Steps To Reproduce
After the upgrade of the Liquibase version, the parameter databaseChangeLogTableName is ignored, and the change log is verified against/written to the default change log table DATABASECHANGELOG.
Please use the following commands to reproduce the issue:
liquibase.sh \ --url=jdbc:postgresql://localhost:5432/db \ --changeLogFile=config.xml \ --username='sys' \ --password='password' \ --contexts=APPS \ --logLevel=WARN \ update
liquibase.sh \ --url=jdbc:postgresql://localhost:5432/db \ --changeLogFile=config.xml \ --username='sys' \ --password='password' \ --contexts=APPS \ --databaseChangeLogTableName=DATABASECHANGELOG_APP2 \ --databaseChangeLogLockTableName=DATABASECHANGELOGLOCK_APP2 \ --logLevel=WARN \ update
Upgrade Liquibase to a version > 4.20.0 (for example 4.21.1 or 4.23.0)
Liquibase 4.21.1 or 4.23.0, Application 1 (Default change log table)
liquibase.sh \ --url=jdbc:postgresql://localhost:5432/db \ --changeLogFile=config.xml \ --username='sys' \ --password='password' \ --contexts=APPS \ --logLevel=WARN \ update
liquibase.sh \ --url=jdbc:postgresql://localhost:5432/db \ --changeLogFile=config.xml \ --username='sys' \ --password='password' \ --contexts=APPS \ --databaseChangeLogTableName=DATABASECHANGELOG_APP2 \ --databaseChangeLogLockTableName=DATABASECHANGELOGLOCK_APP2 \ --logLevel=WARN \ update
Expected/Desired Behavior
Liquibase uses the change log according to parameter databaseChangeLogTableName or environment variable LIQUIBASE_CHANGELOG_TABLENAME.
Liquibase Version
4.21.1
Database Vendor & Version
PostgreSQL 14.5
Liquibase Integration
CLI
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
No response
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: