From: Mike Rylander Date: Wed, 4 May 2011 19:44:19 +0000 (-0400) Subject: Allow different quality measures for different values on the same tag+sf/svf X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b212468779aa74dd719cb9ac614919c749927260;p=evergreen%2Fmasslnc.git Allow different quality measures for different values on the same tag+sf/svf --- diff --git a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql index b5d72df918..8c18550258 100644 --- a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql +++ b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql @@ -42,7 +42,7 @@ CREATE TABLE vandelay.match_set_quality ( CONSTRAINT vmsq_need_a_subfield_with_a_tag CHECK ((tag IS NOT NULL AND subfield IS NOT NULL) OR tag IS NULL), CONSTRAINT vmsq_need_a_tag_or_a_ff CHECK ((tag IS NOT NULL AND svf IS NULL) OR (tag IS NULL AND svf IS NOT NULL)) ); -CREATE UNIQUE INDEX vmsq_def_once_per_set ON vandelay.match_set_quality (match_set, COALESCE(tag,''), COALESCE(subfield,''), COALESCE(svf,'')); +CREATE UNIQUE INDEX vmsq_def_once_per_set ON vandelay.match_set_quality (match_set, COALESCE(tag,''), COALESCE(subfield,''), COALESCE(svf,''), value); CREATE TABLE vandelay.queue (