Merge pull request #3681 from hmlnarik/KEYCLOAK-4122-Some-databases-fails-to-start

KEYCLOAK-4122
This commit is contained in:
Stian Thorgersen 2016-12-21 08:32:27 +01:00 committed by GitHub
commit f98c454775

View file

@ -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>