diff --git a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/client/entity/JpaClientAttributeEntity.java b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/client/entity/JpaClientAttributeEntity.java index a04ce8eaaa..adca8ab0a5 100644 --- a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/client/entity/JpaClientAttributeEntity.java +++ b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/client/entity/JpaClientAttributeEntity.java @@ -21,7 +21,7 @@ import javax.persistence.Table; import org.keycloak.models.map.storage.jpa.JpaAttributeEntity; @Entity -@Table(name = "client_attribute") +@Table(name = "kc_client_attribute") public class JpaClientAttributeEntity extends JpaAttributeEntity { public JpaClientAttributeEntity() { diff --git a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/client/entity/JpaClientEntity.java b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/client/entity/JpaClientEntity.java index 2bd0ebbef9..fe04298336 100644 --- a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/client/entity/JpaClientEntity.java +++ b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/client/entity/JpaClientEntity.java @@ -53,7 +53,7 @@ import org.keycloak.models.map.storage.jpa.hibernate.jsonb.JsonbType; * therefore marked as non-insertable and non-updatable to instruct hibernate. */ @Entity -@Table(name = "client", +@Table(name = "kc_client", uniqueConstraints = { @UniqueConstraint( columnNames = {"realmId", "clientId"} diff --git a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/clientscope/entity/JpaClientScopeAttributeEntity.java b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/clientscope/entity/JpaClientScopeAttributeEntity.java index 68a60676bd..8522667aed 100644 --- a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/clientscope/entity/JpaClientScopeAttributeEntity.java +++ b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/clientscope/entity/JpaClientScopeAttributeEntity.java @@ -21,7 +21,7 @@ import javax.persistence.Table; import org.keycloak.models.map.storage.jpa.JpaAttributeEntity; @Entity -@Table(name = "client_scope_attribute") +@Table(name = "kc_client_scope_attribute") public class JpaClientScopeAttributeEntity extends JpaAttributeEntity { public JpaClientScopeAttributeEntity() { diff --git a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/clientscope/entity/JpaClientScopeEntity.java b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/clientscope/entity/JpaClientScopeEntity.java index dda77b2241..1289b1f5d9 100644 --- a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/clientscope/entity/JpaClientScopeEntity.java +++ b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/clientscope/entity/JpaClientScopeEntity.java @@ -53,7 +53,7 @@ import org.keycloak.models.map.storage.jpa.hibernate.jsonb.JsonbType; * therefore marked as non-insertable and non-updatable to instruct hibernate. */ @Entity -@Table(name = "client_scope", uniqueConstraints = {@UniqueConstraint(columnNames = {"realmId", "name"})}) +@Table(name = "kc_client_scope", uniqueConstraints = {@UniqueConstraint(columnNames = {"realmId", "name"})}) @TypeDefs({@TypeDef(name = "jsonb", typeClass = JsonbType.class)}) public class JpaClientScopeEntity extends AbstractClientScopeEntity implements JpaRootEntity { diff --git a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/role/entity/JpaRoleAttributeEntity.java b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/role/entity/JpaRoleAttributeEntity.java index 46d2fd1fd2..714537c1dd 100644 --- a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/role/entity/JpaRoleAttributeEntity.java +++ b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/role/entity/JpaRoleAttributeEntity.java @@ -21,7 +21,7 @@ import javax.persistence.Table; import org.keycloak.models.map.storage.jpa.JpaAttributeEntity; @Entity -@Table(name = "role_attribute") +@Table(name = "kc_role_attribute") public class JpaRoleAttributeEntity extends JpaAttributeEntity { public JpaRoleAttributeEntity() { diff --git a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/role/entity/JpaRoleEntity.java b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/role/entity/JpaRoleEntity.java index 95c13f6b90..92263186dd 100644 --- a/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/role/entity/JpaRoleEntity.java +++ b/model/map-jpa/src/main/java/org/keycloak/models/map/storage/jpa/role/entity/JpaRoleEntity.java @@ -51,7 +51,7 @@ import org.keycloak.models.map.storage.jpa.hibernate.jsonb.JsonbType; * therefore marked as non-insertable and non-updatable to instruct hibernate. */ @Entity -@Table(name = "role", uniqueConstraints = {@UniqueConstraint(columnNames = {"realmId", "clientId", "name"})}) +@Table(name = "kc_role", uniqueConstraints = {@UniqueConstraint(columnNames = {"realmId", "clientId", "name"})}) @TypeDefs({@TypeDef(name = "jsonb", typeClass = JsonbType.class)}) public class JpaRoleEntity extends AbstractRoleEntity implements JpaRootEntity { diff --git a/model/map-jpa/src/main/resources/META-INF/client-scopes/jpa-client-scopes-changelog-1.xml b/model/map-jpa/src/main/resources/META-INF/client-scopes/jpa-client-scopes-changelog-1.xml index c1355ccdd8..a07f0e2d3c 100644 --- a/model/map-jpa/src/main/resources/META-INF/client-scopes/jpa-client-scopes-changelog-1.xml +++ b/model/map-jpa/src/main/resources/META-INF/client-scopes/jpa-client-scopes-changelog-1.xml @@ -25,7 +25,7 @@ limitations under the License. - + @@ -34,33 +34,33 @@ limitations under the License. - + - + - + - + - + - + - + diff --git a/model/map-jpa/src/main/resources/META-INF/clients/jpa-clients-changelog-1.xml b/model/map-jpa/src/main/resources/META-INF/clients/jpa-clients-changelog-1.xml index 93b65de0fa..ba0512b5a8 100644 --- a/model/map-jpa/src/main/resources/META-INF/clients/jpa-clients-changelog-1.xml +++ b/model/map-jpa/src/main/resources/META-INF/clients/jpa-clients-changelog-1.xml @@ -25,7 +25,7 @@ limitations under the License. - + @@ -34,17 +34,17 @@ limitations under the License. - + - + - + @@ -54,20 +54,20 @@ limitations under the License. --> - + - + - + - + diff --git a/model/map-jpa/src/main/resources/META-INF/roles/jpa-roles-changelog-1.xml b/model/map-jpa/src/main/resources/META-INF/roles/jpa-roles-changelog-1.xml index f92597f55f..ec127ee578 100644 --- a/model/map-jpa/src/main/resources/META-INF/roles/jpa-roles-changelog-1.xml +++ b/model/map-jpa/src/main/resources/META-INF/roles/jpa-roles-changelog-1.xml @@ -25,7 +25,7 @@ limitations under the License. - + @@ -34,17 +34,17 @@ limitations under the License. - + - + - + @@ -56,20 +56,20 @@ limitations under the License. --> - + - + - + - +