Liquibase 2.1.0, Postgresql 8.4, generateChangeLog command does not generate unique constrains into the XML file. Apparently I have the unique constrains in the database, but there is no such information in the generated file.
I am using the following command:
C:\Users\lukast\Desktop\liquibase-2.0.1-bin>liquibase --driver=org.postgresql.Driver --classpath=postgresql-8.4-701.jdbc4.jar --url=“jdbc:postgresql://localhos
:5432/db” --username= --password= --changeLogFile= --defaultSchemaName= --diffTypes=“tables, columns, views, primaryKeys, indexes, fo
eignKeys, data” --logLevel=debug --databaseClass=liquibase.database.core.PostgresDatabase generateChangeLog
The only information in the generated file about the column with the unique constraint from the database is:
Am I doing something wrong or is it 2.1.0 BUG ?
Is there any workaround ? Maybe it worked in older versions of liquibase ?
Thanks in advance for help.
-
Learn
-
Resources
-
Free Tools
OSS Risk Scanner Database DevOps Risk AssessmentCheat Sheets
Snowflake + Liquibase Databricks + Liquibase -
eBooks
6 Liquibase Community Risks & How to Avoid Guide: SOC 2 Compliance at the Database Layer Guide: Quantify the Value of Liquibase Secure -
Comparison Guides
Liquibase vs. Flyway Liquibase vs. Bytebase Liquibase Community vs Liquibase Secure
-
- Quickstart
- Get Started
- Documentation
- University
-
Resources
- Connect
- Contribute
- Join
- Blog