updated organization table name to not conflict. fixes #28246
Signed-off-by: Garth <244253+xgp@users.noreply.github.com>
This commit is contained in:
parent
82843d3e0a
commit
16770ffad8
2 changed files with 5 additions and 5 deletions
|
@ -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")
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue