parent
de663dbf93
commit
acebf4616e
2 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ public final class Database {
|
||||||
Enabled.MAP_STORE_ONLY,
|
Enabled.MAP_STORE_ONLY,
|
||||||
POSTGRES.xaDriver,
|
POSTGRES.xaDriver,
|
||||||
POSTGRES.nonXaDriver,
|
POSTGRES.nonXaDriver,
|
||||||
"org.hibernate.dialect.CockroachDB201Dialect",
|
"org.hibernate.dialect.CockroachDialect",
|
||||||
"jdbc:postgresql://${kc.db-url-host:localhost}:${kc.db-url-port:26257}/${kc.db-url-database:keycloak}${kc.db-url-properties:}",
|
"jdbc:postgresql://${kc.db-url-host:localhost}:${kc.db-url-port:26257}/${kc.db-url-database:keycloak}${kc.db-url-properties:}",
|
||||||
List.of("liquibase.database.core.CockroachDatabase"),
|
List.of("liquibase.database.core.CockroachDatabase"),
|
||||||
"cockroach"
|
"cockroach"
|
||||||
|
|
|
@ -189,7 +189,7 @@ final class DatabasePropertyMappers {
|
||||||
|
|
||||||
private static Optional<String> transformDialect(Optional<String> db, ConfigSourceInterceptorContext context) {
|
private static Optional<String> transformDialect(Optional<String> db, ConfigSourceInterceptorContext context) {
|
||||||
if (isJpaStore()) {
|
if (isJpaStore()) {
|
||||||
return of("org.keycloak.models.map.storage.jpa.hibernate.dialect.JsonbPostgreSQL95Dialect");
|
return Database.getDialect(getJpaStoreDbVendor().name().toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
Optional<String> databaseKind = Database.getDatabaseKind(db.get());
|
Optional<String> databaseKind = Database.getDatabaseKind(db.get());
|
||||||
|
|
Loading…
Reference in a new issue