acq vandelay : schema changes to remove bib_type change
authorBill Erickson <berick@esilibrary.com>
Mon, 5 Dec 2011 16:39:29 +0000 (11:39 -0500)
committerBill Erickson <berick@esilibrary.com>
Mon, 5 Dec 2011 16:39:29 +0000 (11:39 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-vandelay-integration.sql

index fe9bf56..7fff3bf 100644 (file)
@@ -12,11 +12,6 @@ ALTER TABLE acq.acq_lineitem_history ADD COLUMN queued_record BIGINT
     REFERENCES vandelay.queued_bib_record (id) 
     ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED;
 
--- add support for 'acq' vandelay queue types
-ALTER TABLE vandelay.queue DROP CONSTRAINT queue_queue_type_check;
-ALTER TABLE vandelay.queue ADD CONSTRAINT queue_queue_type_check 
-    CHECK (queue_type = ANY (ARRAY['bib'::text, 'authority'::text, 'acq'::text]));
-
 ALTER TABLE vandelay.queue ADD COLUMN temp BOOL DEFAULT FALSE;
 
 COMMIT;
@@ -25,7 +20,5 @@ COMMIT;
 UPDATE acq.lineitem SET queued_record = NULL;
 ALTER TABLE acq.lineitem DROP COLUMN queued_record;
 ALTER TABLE acq.acq_lineitem_history DROP COLUMN queued_record;
-ALTER TABLE vandelay.queue DROP CONSTRAINT queue_queue_type_check;
-ALTER TABLE vandelay.queue ADD CONSTRAINT queue_queue_type_check CHECK (queue_type = ANY (ARRAY['bib'::text, 'authority'::text]));
 ALTER TABLE vandelay.queue drop COLUMN temp;
 */