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;
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;
*/