You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
databaseChangeLog:
- changeSet:
id: 1682344414526-28
author: user (generated)
changes:
- createTable:
columns:
- column:
constraints:
nullable: false
primaryKey: true
primaryKeyName: testPK
name: id
type: BYTEA
- column:
constraints:
nullable: false
defaultValueComputed: CURRENT_TIMESTAMP
name: created
type: TIMESTAMP WITH TIME ZONE
- column:
constraints:
nullable: false
defaultValueComputed: CURRENT_TIMESTAMP
name: updated
type: TIMESTAMP WITH TIME ZONE
- column:
name: version
type: BIGINT
- column:
name: given_name
type: VARCHAR(255)
- column:
name: middle_name
type: VARCHAR(255)
- column:
name: sur_name
type: VARCHAR(255)
tableName: test
Expected
I would expect 2 unique constraints on given_name column and the combination of "given_name", "middle_name", "sur_name"
Additional, column id of type UUID, is assigned to 'bytea' - I would have expected UUID
The text was updated successfully, but these errors were encountered:
Description
Running a diffChangelog does not pick up on JPA unique constraints
Versions
liquibase-core 4.21.1
liquibase-hibernate6 4.21.1
Spring boot 3.0.5
org.postgresql:postgresql 42.6.0
java 17
liquibase.properties
Entities
Test
BaseEntity
Output yaml
Expected
I would expect 2 unique constraints on
given_name
column and the combination of"given_name", "middle_name", "sur_name"
Additional, column
id
of type UUID, is assigned to 'bytea' - I would have expected UUIDThe text was updated successfully, but these errors were encountered: