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.