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);