From c25dd1dba85fca411bd948480da751e2eafe2b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Barto=C5=A1?= Date: Thu, 14 Aug 2025 17:42:16 +0200 Subject: [PATCH] Change naming for disabling additional datasource (#41815) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #40761 Signed-off-by: Martin Bartoš --- .../src/main/java/org/keycloak/config/DatabaseOptions.java | 4 ++-- .../configuration/mappers/DatabasePropertyMappers.java | 2 +- .../runtime/configuration/DatasourcesConfigurationTest.java | 6 +++--- ...lpCommandDistTest.testBootstrapAdminService.approved.txt | 5 +++-- .../HelpCommandDistTest.testBootstrapAdminUser.approved.txt | 5 +++-- .../help/HelpCommandDistTest.testExportHelp.approved.txt | 5 +++-- .../help/HelpCommandDistTest.testExportHelpAll.approved.txt | 5 +++-- .../help/HelpCommandDistTest.testImportHelp.approved.txt | 5 +++-- .../help/HelpCommandDistTest.testImportHelpAll.approved.txt | 5 +++-- .../help/HelpCommandDistTest.testStartDevHelp.approved.txt | 5 +++-- .../HelpCommandDistTest.testStartDevHelpAll.approved.txt | 5 +++-- .../cli/help/HelpCommandDistTest.testStartHelp.approved.txt | 5 +++-- .../help/HelpCommandDistTest.testStartHelpAll.approved.txt | 5 +++-- .../HelpCommandDistTest.testStartOptimizedHelp.approved.txt | 5 +++-- ...lpCommandDistTest.testStartOptimizedHelpAll.approved.txt | 5 +++-- ...ndDistTest.testUpdateCompatibilityCheckHelp.approved.txt | 5 +++-- ...istTest.testUpdateCompatibilityCheckHelpAll.approved.txt | 5 +++-- ...istTest.testUpdateCompatibilityMetadataHelp.approved.txt | 5 +++-- ...Test.testUpdateCompatibilityMetadataHelpAll.approved.txt | 5 +++-- 19 files changed, 54 insertions(+), 38 deletions(-) diff --git a/quarkus/config-api/src/main/java/org/keycloak/config/DatabaseOptions.java b/quarkus/config-api/src/main/java/org/keycloak/config/DatabaseOptions.java index f612d0a9843..4854d0d4a5c 100644 --- a/quarkus/config-api/src/main/java/org/keycloak/config/DatabaseOptions.java +++ b/quarkus/config-api/src/main/java/org/keycloak/config/DatabaseOptions.java @@ -101,10 +101,10 @@ public class DatabaseOptions { .defaultValue(10000) .build(); - public static final Option DB_ACTIVE_DATASOURCE = new OptionBuilder<>("db-active-", Boolean.class) + public static final Option DB_ENABLED_DATASOURCE = new OptionBuilder<>("db-enabled-", Boolean.class) .category(OptionCategory.DATABASE_DATASOURCES) .defaultValue(true) - .description("Deactivate specific named datasource .") + .description("If the named datasource should be enabled at runtime.") .build(); public static final Option DB_POSTGRESQL_TARGET_SERVER_TYPE = new OptionBuilder<>("db-postgres-target-server-type", String.class) diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/DatabasePropertyMappers.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/DatabasePropertyMappers.java index 3ac97823d38..12125b2a695 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/DatabasePropertyMappers.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/DatabasePropertyMappers.java @@ -101,7 +101,7 @@ final class DatabasePropertyMappers { fromOption(DatabaseOptions.DB_SQL_LOG_SLOW_QUERIES) .paramLabel("milliseconds") .build(), - fromOption(DatabaseOptions.DB_ACTIVE_DATASOURCE) + fromOption(DatabaseOptions.DB_ENABLED_DATASOURCE) .to("quarkus.datasource.\"\".active") .build(), fromOption(DB_URL_PATH) diff --git a/quarkus/runtime/src/test/java/org/keycloak/quarkus/runtime/configuration/DatasourcesConfigurationTest.java b/quarkus/runtime/src/test/java/org/keycloak/quarkus/runtime/configuration/DatasourcesConfigurationTest.java index 77d73412524..0dd1280ba83 100644 --- a/quarkus/runtime/src/test/java/org/keycloak/quarkus/runtime/configuration/DatasourcesConfigurationTest.java +++ b/quarkus/runtime/src/test/java/org/keycloak/quarkus/runtime/configuration/DatasourcesConfigurationTest.java @@ -141,13 +141,13 @@ public class DatasourcesConfigurationTest extends AbstractConfigurationTest { public void datasourceEnabled() { ConfigArgsConfigSource.setCliArgs(""); initConfig(); - assertConfig("db-active-store", "true"); + assertConfig("db-enabled-store", "true"); assertExternalConfig("quarkus.datasource.\"store\".active", "true"); onAfter(); - ConfigArgsConfigSource.setCliArgs("--db-active-store=false"); + ConfigArgsConfigSource.setCliArgs("--db-enabled-store=false"); initConfig(); - assertConfig("db-active-store", "false"); + assertConfig("db-enabled-store", "false"); assertExternalConfig("quarkus.datasource.\"store\".active", "false"); } diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminService.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminService.approved.txt index 21d13229cd2..9d31c84c2b0 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminService.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminService.approved.txt @@ -72,8 +72,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -81,6 +79,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminUser.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminUser.approved.txt index 14351b8798a..7294af83c95 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminUser.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testBootstrapAdminUser.approved.txt @@ -74,8 +74,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -83,6 +81,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt index 463078073f6..995aa957c2a 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelp.approved.txt @@ -67,8 +67,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -76,6 +74,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt index d91dda4b907..2ab6f878249 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testExportHelpAll.approved.txt @@ -67,8 +67,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -76,6 +74,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelp.approved.txt index cf293344595..68e5e006a26 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelp.approved.txt @@ -67,8 +67,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -76,6 +74,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelpAll.approved.txt index d01e690a0ea..fbf550638bb 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testImportHelpAll.approved.txt @@ -67,8 +67,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -76,6 +74,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelp.approved.txt index 721fc2d845e..e1e4e26f01e 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelp.approved.txt @@ -109,8 +109,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -118,6 +116,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelpAll.approved.txt index c9c5f2d45c1..15ae6d2b444 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartDevHelpAll.approved.txt @@ -176,8 +176,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -185,6 +183,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelp.approved.txt index 5d350b6ab28..d3d771a1c2c 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelp.approved.txt @@ -157,8 +157,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -166,6 +164,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelpAll.approved.txt index 0dd85f083b7..e07226099c9 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartHelpAll.approved.txt @@ -177,8 +177,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -186,6 +184,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelp.approved.txt index d5550ab2aa0..2955fb0b1b1 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelp.approved.txt @@ -151,11 +151,12 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-log-slow-queries-threshold- Preview: Used for named . Log SQL statements slower than the configured threshold with logger org.hibernate.SQL_SLOW and log-level info. diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelpAll.approved.txt index 52a23bc2577..198a2e6a203 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testStartOptimizedHelpAll.approved.txt @@ -171,11 +171,12 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-log-slow-queries-threshold- Preview: Used for named . Log SQL statements slower than the configured threshold with logger org.hibernate.SQL_SLOW and log-level info. diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelp.approved.txt index ae0496ef9f6..f1d28473a57 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelp.approved.txt @@ -156,8 +156,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -165,6 +163,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelpAll.approved.txt index c645c548baf..6c6e5878239 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityCheckHelpAll.approved.txt @@ -176,8 +176,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -185,6 +183,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelp.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelp.approved.txt index f783674652c..e95a19d8cde 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelp.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelp.approved.txt @@ -154,8 +154,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -163,6 +161,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify diff --git a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelpAll.approved.txt b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelpAll.approved.txt index 45a590b79a6..4be7077ef7d 100644 --- a/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelpAll.approved.txt +++ b/quarkus/tests/integration/src/test/resources/org/keycloak/it/cli/dist/approvals/cli/help/HelpCommandDistTest.testUpdateCompatibilityMetadataHelpAll.approved.txt @@ -174,8 +174,6 @@ Database: Database - additional datasources (Preview): ---db-active- - Preview: Deactivate specific named datasource . Default: true. --db-debug-jpql- Preview: Used for named . Add JPQL information as comments to SQL statements to debug JPA SQL statement generation. Default: false. @@ -183,6 +181,9 @@ Database - additional datasources (Preview): Preview: Used for named . The fully qualified class name of the JDBC driver. If not set, a default driver is set accordingly to the chosen database. +--db-enabled- + Preview: If the named datasource should be enabled at runtime. + Default: true. --db-kind- Preview: Used for named . The database vendor. In production mode the default value of 'dev-file' is deprecated, you should explicitly specify