LP1806968 Stamping SQL upgrade: Vand. session tracker fixes
authorBill Erickson <berickxx@gmail.com>
Mon, 17 Dec 2018 22:01:45 +0000 (17:01 -0500)
committerBill Erickson <berickxx@gmail.com>
Mon, 17 Dec 2018 22:01:50 +0000 (17:01 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1141.schema.vandelay-record-type-fix.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.vandelay-record-type-fix.sql [deleted file]

index dbe280d..1c72349 100644 (file)
@@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps
     BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
     FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1140', :eg_version); -- dyrcona/bshum
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1141', :eg_version); -- khuckins/berick/jboyer
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1141.schema.vandelay-record-type-fix.sql b/Open-ILS/src/sql/Pg/upgrade/1141.schema.vandelay-record-type-fix.sql
new file mode 100644 (file)
index 0000000..69cb971
--- /dev/null
@@ -0,0 +1,14 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1141', :eg_version);
+
+ALTER TABLE vandelay.session_tracker
+    ALTER COLUMN record_type TYPE TEXT,
+    ALTER COLUMN record_type SET DEFAULT 'bib'::TEXT;
+
+ALTER TABLE vandelay.session_tracker
+    ADD CONSTRAINT vand_tracker_valid_record_type
+        CHECK (record_type IN ('bib', 'authority'));
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.vandelay-record-type-fix.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.vandelay-record-type-fix.sql
deleted file mode 100644 (file)
index 0ba8a6e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-ALTER TABLE vandelay.session_tracker
-    ALTER COLUMN record_type TYPE TEXT,
-    ALTER COLUMN record_type SET DEFAULT 'bib'::TEXT;
-
-ALTER TABLE vandelay.session_tracker
-    ADD CONSTRAINT vand_tracker_valid_record_type
-        CHECK (record_type IN ('bib', 'authority'));
-
-COMMIT;
-