Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

[ERROR] Object 'DATABASECHANGELOG' already exists FOR case sensitive schema name (Mixed case)

$
0
0
I have been able to connect and run mvn liquibase:update using UPPERCASE SCHEMA NAME eg. (TEST_ISH), but once I start using MIXED CASE SCHEMA Name eg. (Test_Ish), I can only run mvn liquibase:update the first time (once). Second time onwards I keep getting errors as below:

It is connecting to the mixed case schema but I can only run it for very first run. Second time onwards if I am to run liquibase:update I keep getting and cannot get over this error:
"[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.5.3:update (default-cli) on project edm-liquibase-test: Error setting up or running Liquibase: SQL compilation error:
[ERROR] Object 'DATABASECHANGELOG' already exists. [Failed SQL: CREATE TABLE DATABASECHANGELOG (ID VARCHAR(255) NOT NULL, AUTHOR VARCHAR(255) NOT NULL, FILENAME VARCHAR(255) NOT NULL, DATEEXECUTED TIMESTAMP_NTZ NOT NULL, ORDEREXECUTED INT NOT NULL, EXECTYPE VARCHAR(10) NOT NULL, MD5SUM VARCHAR(35), DESCRIPTION VARCHAR(255), COMMENTS VARCHAR(255), TAG VARCHAR(255), LIQUIBASE VARCHAR(20), CONTEXTS VARCHAR(255), LABELS VARCHAR(255), DEPLOYMENT_ID VARCHAR(10))]"

NB: If I drop both "DATABASECHANGELOG" and "DATABASECHANGELOGLOCK" and run again, it works again but once.

I have tested this for both UPPER CASE and MIXED CASE SCHEMA NAMES in SNOWFLAKE but issue exist only for MIXED CASE SCHEMA NAME.

Any feedbacks would be very much helpful.

THANK YOU SO MUCH.
Ishwar

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>