Merge pull request #3681 from hmlnarik/KEYCLOAK-4122-Some-databases-fails-to-start
KEYCLOAK-4122
This commit is contained in:
commit
f98c454775
1 changed files with 9 additions and 2 deletions
|
@ -21,8 +21,6 @@
|
|||
<changeSet author="bburke@redhat.com" id="2.5.0">
|
||||
<customChange class="org.keycloak.connections.jpa.updater.liquibase.custom.MigrateUserFedToComponent"/>
|
||||
|
||||
<addUniqueConstraint columnNames="NAME,PARENT_GROUP,REALM_ID" constraintName="SIBLING_NAMES" tableName="KEYCLOAK_GROUP"/>
|
||||
|
||||
<modifyDataType tableName="OFFLINE_USER_SESSION" columnName="USER_ID" newDataType="VARCHAR(255)"/>
|
||||
</changeSet>
|
||||
|
||||
|
@ -112,4 +110,13 @@
|
|||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="hmlnarik@redhat.com" id="2.5.0-unique-group-names">
|
||||
<preConditions onSqlOutput="TEST" onFail="MARK_RAN">
|
||||
<not>
|
||||
<dbms type="db2" /> <!-- exclude DB2 as it requires all fields to be non-NULL for unique constraints -->
|
||||
</not>
|
||||
</preConditions>
|
||||
<addUniqueConstraint columnNames="REALM_ID,PARENT_GROUP,NAME" constraintName="SIBLING_NAMES" tableName="KEYCLOAK_GROUP"/>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
Loading…
Reference in a new issue