one more cleanup for upgrade scripts
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Jan 2009 20:01:41 +0000 (20:01 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Jan 2009 20:01:41 +0000 (20:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11892 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql
Open-ILS/src/sql/Pg/1.2.4-1.4-upgrade-db.sql

index dcaaa28..65583a3 100644 (file)
@@ -1943,7 +1943,7 @@ CREATE TABLE vandelay.import_item_attr_definition (
 
 CREATE TABLE vandelay.bib_queue (
        queue_type          TEXT        NOT NULL DEFAULT 'bib' CHECK (queue_type = 'bib'),
-       item_attr_def   TEXT    REFERENCES vandelay.import_item_attr_definition (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED,
+       item_attr_def   BIGINT  REFERENCES vandelay.import_item_attr_definition (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED,
        CONSTRAINT vand_bib_queue_name_once_per_owner_const UNIQUE (owner,name,queue_type)
 ) INHERITS (vandelay.queue);
 ALTER TABLE vandelay.bib_queue ADD PRIMARY KEY (id);
index 5116b3d..276c7c4 100644 (file)
@@ -1942,7 +1942,7 @@ CREATE TABLE vandelay.import_item_attr_definition (
 
 CREATE TABLE vandelay.bib_queue (
        queue_type          TEXT        NOT NULL DEFAULT 'bib' CHECK (queue_type = 'bib'),
-       item_attr_def   TEXT    REFERENCES vandelay.import_item_attr_definition (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED,
+       item_attr_def   BIGINT  REFERENCES vandelay.import_item_attr_definition (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED,
        CONSTRAINT vand_bib_queue_name_once_per_owner_const UNIQUE (owner,name,queue_type)
 ) INHERITS (vandelay.queue);
 ALTER TABLE vandelay.bib_queue ADD PRIMARY KEY (id);