Hi Team,
I have an entity UserCert with 1:1 mapping to User entity, note the condition unique = true
:
@JoinColumn(name = "USER_ID", unique = true)
@OneToOne(fetch = FetchType.LAZY)
private User user;
Studio creates below changeset:
<changeSet id="22" author="erep">
<addForeignKeyConstraint baseColumnNames="USER_ID" baseTableName="EREP_USER_CERT"
constraintName="FK_EREP_USER_CERT_ON_USER" referencedColumnNames="ID"
referencedTableName="JMXSILL_USER"/>
<createPartialIndex indexName="IDX_UC_EREP_USER_CERT_USER" tableName="EREP_USER_CERT" unique="true">
<column name="USER_ID"/>
</createPartialIndex>
</changeSet>
This lead to Liquibase error:
[2022-01-21 15:40:12] SEVERE [liquibase.parser] cvc-complex-type.2.4.a: Invalid content was found starting with element 'createPartialIndex'.
I’m using Studio version 1.1.4 and PostgreSQL.
Similar issue was created in YouTrack: https://issues.jpa-buddy.com/issue/JST-1430 without a solution.
Could you please check this again?