From 9a895607710daa2bd4b46cf1022a195e8e66e1fb Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Mon, 25 Jul 2022 21:09:29 +0200 Subject: [PATCH] Liquibase should differentiate between CockroachDB and PostgreSQL despite them same driver Only this way the different SQL script for CockroachDB and PostgreSQL will work as expected on Quarkus. Closes #13317 --- .../src/main/java/org/keycloak/config/database/Database.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quarkus/config-api/src/main/java/org/keycloak/config/database/Database.java b/quarkus/config-api/src/main/java/org/keycloak/config/database/Database.java index b2fc14c979..9cbe142566 100644 --- a/quarkus/config-api/src/main/java/org/keycloak/config/database/Database.java +++ b/quarkus/config-api/src/main/java/org/keycloak/config/database/Database.java @@ -135,7 +135,7 @@ public final class Database { "org.postgresql.Driver", "io.quarkus.hibernate.orm.runtime.dialect.QuarkusPostgreSQL10Dialect", "jdbc:postgresql://${kc.db-url-host:localhost}:${kc.db-url-port:5432}/${kc.db-url-database:keycloak}${kc.db-url-properties:}", - asList("liquibase.database.core.PostgresDatabase", + asList("liquibase.database.core.PostgresDatabase", "liquibase.database.core.CockroachDatabase", "org.keycloak.connections.jpa.updater.liquibase.PostgresPlusDatabase"), "postgres" ),