updated organization table name to not conflict. fixes #28246

Signed-off-by: Garth <244253+xgp@users.noreply.github.com>
This commit is contained in:
Garth 2024-03-29 18:52:57 +01:00 committed by Pedro Igor
parent 82843d3e0a
commit 16770ffad8
2 changed files with 5 additions and 5 deletions

View file

@ -26,7 +26,7 @@ import jakarta.persistence.NamedQueries;
import jakarta.persistence.NamedQuery;
import jakarta.persistence.Table;
@Table(name="ORGANIZATION")
@Table(name="ORG")
@Entity
@NamedQueries({
@NamedQuery(name="getByRealm", query="select o from OrganizationEntity o where o.realmId = :realmId")

View file

@ -75,7 +75,7 @@
</changeSet>
<changeSet author="keycloak" id="25.0.0-org">
<createTable tableName="ORGANIZATION">
<createTable tableName="ORG">
<column name="ID" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
@ -90,9 +90,9 @@
</column>
</createTable>
<addPrimaryKey columnNames="ID" tableName="ORGANIZATION"/>
<addUniqueConstraint tableName="ORGANIZATION" columnNames="REALM_ID, NAME" constraintName="UK_ORG_NAME"/>
<addUniqueConstraint tableName="ORGANIZATION" columnNames="GROUP_ID" constraintName="UK_ORG_GROUP"/>
<addPrimaryKey columnNames="ID" tableName="ORG"/>
<addUniqueConstraint tableName="ORG" columnNames="REALM_ID, NAME" constraintName="UK_ORG_NAME"/>
<addUniqueConstraint tableName="ORG" columnNames="GROUP_ID" constraintName="UK_ORG_GROUP"/>
</changeSet>
<changeSet author="keycloak" id="unique-consentuser">