From a84a8afa517383873c833a42d753a125c8956130 Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Mon, 18 Nov 2024 15:06:42 -0800 Subject: [PATCH 1/2] Default SupportedDatabases property to PostgreSQL-only --- api/src/org/labkey/api/module/DefaultModule.java | 4 ++-- api/src/org/labkey/api/module/MockModule.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/org/labkey/api/module/DefaultModule.java b/api/src/org/labkey/api/module/DefaultModule.java index 91e5c5ed646..1ef43e238ca 100644 --- a/api/src/org/labkey/api/module/DefaultModule.java +++ b/api/src/org/labkey/api/module/DefaultModule.java @@ -528,9 +528,9 @@ public Collection getProvisionedSchemaNames() return Collections.emptySet(); } - protected static final Set ALL_DATABASES = Set.of(SupportedDatabase.mssql, SupportedDatabase.pgsql); + protected static final Set ONLY_POSTGRESQL = Set.of(SupportedDatabase.pgsql); - private Set _supportedDatabases = ALL_DATABASES; + private Set _supportedDatabases = ONLY_POSTGRESQL; @NotNull @Override diff --git a/api/src/org/labkey/api/module/MockModule.java b/api/src/org/labkey/api/module/MockModule.java index a4e50565e33..cb86530152a 100644 --- a/api/src/org/labkey/api/module/MockModule.java +++ b/api/src/org/labkey/api/module/MockModule.java @@ -470,7 +470,7 @@ public JSONObject getPageContextJson(ContainerUser context) @Override public Set getSupportedDatabasesSet() { - return DefaultModule.ALL_DATABASES; + return DefaultModule.ONLY_POSTGRESQL; } @Nullable From e951cbe003857ca2dbfb4023f47f497f65b1f4ba Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Mon, 18 Nov 2024 16:41:15 -0800 Subject: [PATCH 2/2] Remove SupportedDatabases property now that default is PostgreSQL-only --- mothership/module.properties | 1 - 1 file changed, 1 deletion(-) diff --git a/mothership/module.properties b/mothership/module.properties index 8dd56ae738a..08a8637187e 100644 --- a/mothership/module.properties +++ b/mothership/module.properties @@ -5,4 +5,3 @@ Organization: LabKey OrganizationURL: https://www.labkey.com/ License: Apache 2.0 LicenseURL: http://www.apache.org/licenses/LICENSE-2.0 -SupportedDatabases: pgsql