Open nicopadu opened 3 years ago
Hi Nicolas, how are you? Were you able to solve the "DATABASECHANGELOG" already exists problem?
Hi Larissa, nop we were not able to fix it. We're still with the known way of keeping schema & username with same value
I ran into the same issue and resolved it by making the login user to SQL Server a member of the role db_owner
Hi @nicopadu and @larissavmss ,
I was getting same error like you for the DATABASECHANGELOG already exists
, but I have tried only the parameter below with both liquibase
and liquibase-vertica
jar version 4.26.0
and it works now successfully.
liquibase.liquibaseSchemaName=public
Environment
Liquibase Version: 4.4.3
Liquibase Integration & Version: CLI
Liquibase Extension(s) & Version: liquibase-verticaDatabase-4.4.3.jar
Database Vendor & Version:
Operating System Type & Version: Liquibase (Ubuntu 20.04), Vertica (docker image)
Description
Update command only works if database name, schema and username are all aligned with same value. In case that any of them has a different value following error occurs:
Unexpected error running Liquibase: [Vertica][VJDBC](4213) ROLLBACK: Object "DATABASECHANGELOG" already exists
Steps To Reproduce
Using vertica-ce docker image from here: https://hub.docker.com/r/verticadocker/vertica-ce
this is the content of liquibase.properties
this is the changelog.xml
first update command -- success
second update command -- fail
Actual Behavior
Database, Schema and Username are different:
bin/liquibase update --url=jdbc:vertica://localhost:5433/vmart --username=my_user --password=my_pass
DATABASECHANGELOG & DATABASECHANGELOGLOCK tables are created in schema "my_schema", but target table "t1" is created in default "public" schema. Second execution of update command fails with
Object "DATABASECHANGELOG" already exists
Probably related to https://github.com/liquibase/liquibase/issues/2030Database, Schema and Username all with same value
In case all values are the same, full procedure works... unfortunately this enforces a very rigid configuration
Steps to make it run:
update liquibase.properties with following values:
run update command
following update command works as expected. all tables are created under schema "my_user"
Expected/Desired Behavior
Ideally users should be able to configure independent values for db name, schema and username
Note
Originally created here: https://github.com/liquibase/liquibase/issues/2038
┆Issue is synchronized with this Jira Bug by Unito