From bf93484000fd6e6c915b2f96112749ae6b1176ed Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Thu, 30 Apr 2026 16:38:45 -0700 Subject: [PATCH] Drop redundant indices --- peptideInventory/module.properties | 2 +- .../dbscripts/postgresql/peptideinventory-26.000-26.001.sql | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 peptideInventory/resources/schemas/dbscripts/postgresql/peptideinventory-26.000-26.001.sql diff --git a/peptideInventory/module.properties b/peptideInventory/module.properties index 8d3ea7fe..1178d04b 100644 --- a/peptideInventory/module.properties +++ b/peptideInventory/module.properties @@ -1,3 +1,3 @@ Name: PeptideInventory -SchemaVersion: 26.000 +SchemaVersion: 26.001 ManageVersion: true diff --git a/peptideInventory/resources/schemas/dbscripts/postgresql/peptideinventory-26.000-26.001.sql b/peptideInventory/resources/schemas/dbscripts/postgresql/peptideinventory-26.000-26.001.sql new file mode 100644 index 00000000..8b458f7f --- /dev/null +++ b/peptideInventory/resources/schemas/dbscripts/postgresql/peptideinventory-26.000-26.001.sql @@ -0,0 +1,6 @@ +-- Converting uq_lotassignment [peptideId, container, lotNumber] from unique to non-unique index because pk_lotassignment [peptideId, container] overlaps it with a smaller column set +ALTER TABLE peptideinventory.lotAssignment DROP CONSTRAINT uq_lotassignment; +CREATE INDEX ix_lotassignment ON peptideinventory.lotAssignment(peptideId, container, lotNumber); +-- Converting uq_rcpoolassignment [peptideId, container, rcPoolId] from unique to non-unique index because pk_rcpoolassignment [peptideId, container] overlaps it with a smaller column set +ALTER TABLE peptideinventory.rcPoolAssignment DROP CONSTRAINT uq_rcpoolassignment; +CREATE INDEX ix_rcpoolassignment ON peptideinventory.rcPoolAssignment(peptideId, container, rcPoolId);