From 02064dd4946a7fc052e4a88a37ede11c1a908e9b Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Sat, 2 May 2026 10:12:48 -0700 Subject: [PATCH] Drop redundant indices Original PR: https://github.com/LabKey/ehrModules/pull/1120 Original PR: https://github.com/LabKey/ehrModules/pull/1121 --- .../schemas/dbscripts/postgresql/snd-26.000-26.001.sql | 6 ++++++ snd/src/org/labkey/snd/SNDModule.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 snd/resources/schemas/dbscripts/postgresql/snd-26.000-26.001.sql diff --git a/snd/resources/schemas/dbscripts/postgresql/snd-26.000-26.001.sql b/snd/resources/schemas/dbscripts/postgresql/snd-26.000-26.001.sql new file mode 100644 index 000000000..de60be5a7 --- /dev/null +++ b/snd/resources/schemas/dbscripts/postgresql/snd-26.000-26.001.sql @@ -0,0 +1,6 @@ +-- Dropping idx_snd_lookups_lookupsetid [LookupSetId] because it overlaps with idx_snd_lookups_lookupsetid_value [LookupSetId, Value] +DROP INDEX snd.idx_snd_lookups_lookupsetid; +-- Dropping idx_snd_pkgcategoryjunction_pkgid [PkgId] because it overlaps with pk_snd_pkgcategoryjunction [PkgId, CategoryId] +DROP INDEX snd.idx_snd_pkgcategoryjunction_pkgid; +-- Dropping idx_snd_eventnotes_eventnoteid [EventNoteId] because it overlaps with pk_snd_eventnotes [EventNoteId] +DROP INDEX snd.idx_snd_eventnotes_eventnoteid; diff --git a/snd/src/org/labkey/snd/SNDModule.java b/snd/src/org/labkey/snd/SNDModule.java index 6497d9c73..3a1325e88 100644 --- a/snd/src/org/labkey/snd/SNDModule.java +++ b/snd/src/org/labkey/snd/SNDModule.java @@ -67,7 +67,7 @@ public String getName() @Override public @Nullable Double getSchemaVersion() { - return 26.000; + return 26.001; } @Override