Update: I think this may be an h2 limitation. I can’t seem to create a compound primary key that includes an identity field. I have posted a question on h2 forums as well.
I used generateChangeLog against a Postgres DB to create a starting point from my existing db. It created this simple table:
Running just that changeset against an new h2 db, liquibase creates a primary key on the agreementId column which is incorrect.
The primary key should be:
I tried adding primaryKey=“false” to the constraint but that didn’t help.
What can I do to keep liquibase from creating the PK so the changeset that creates the correct PK will succeed.
Thanks in advance for any 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