LP 902255: Stamping upgrade script
authorJason Stephenson <jstephenson@mvlc.org>
Mon, 15 Jun 2015 19:22:09 +0000 (15:22 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 15 Jun 2015 19:22:09 +0000 (15:22 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0920.schema.disallow-double-capture.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.disallow-double-capture.sql [deleted file]

index 8b05a3b..fe2ceeb 100644 (file)
@@ -91,7 +91,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 ('0919', :eg_version); -- miker/dbwells
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0920', :eg_version); -- miker/klussier
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0920.schema.disallow-double-capture.sql b/Open-ILS/src/sql/Pg/upgrade/0920.schema.disallow-double-capture.sql
new file mode 100644 (file)
index 0000000..3e698c2
--- /dev/null
@@ -0,0 +1,13 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0920', :eg_version);
+
+CREATE UNIQUE INDEX CONCURRENTLY
+    hold_request_capture_protect_idx ON action.hold_request (current_copy)
+    WHERE   current_copy IS NOT NULL -- sometimes null in old/bad data
+            AND capture_time IS NOT NULL
+            AND cancel_time IS NULL
+            AND fulfillment_time IS NULL;
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.disallow-double-capture.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.disallow-double-capture.sql
deleted file mode 100644 (file)
index e644d35..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-CREATE UNIQUE INDEX CONCURRENTLY
-    hold_request_capture_protect_idx ON action.hold_request (current_copy)
-    WHERE   current_copy IS NOT NULL -- sometimes null in old/bad data
-            AND capture_time IS NOT NULL
-            AND cancel_time IS NULL
-            AND fulfillment_time IS NULL;
-
-COMMIT;
-