mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
@@ -65,7 +65,8 @@ import static org.keycloak.models.map.storage.jpa.JpaMapStorageProviderFactory.C
|
||||
@Entity
|
||||
@Table(name = "kc_user",
|
||||
uniqueConstraints = {
|
||||
@UniqueConstraint(columnNames = {"realmId", "username"}),
|
||||
// if same username it can differ only in usernameWithCase
|
||||
@UniqueConstraint(columnNames = {"realmId", "username", "usernameWithCase"}),
|
||||
@UniqueConstraint(columnNames = {"realmId", "emailConstraint"})
|
||||
})
|
||||
@TypeDefs({@TypeDef(name = "jsonb", typeClass = JsonbType.class)})
|
||||
|
||||
@@ -34,4 +34,9 @@ limitations under the License.
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="keycloak" id="users-14797">
|
||||
<addUniqueConstraint tableName="kc_user" columnNames="realmid, username, usernamewithcase"/>
|
||||
<addUniqueConstraint tableName="kc_user" columnNames="realmid, emailconstraint"/>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
||||
Reference in New Issue
Block a user