Stamping upgrade for copy_location_alert
authorBill Erickson <berick@esilibrary.com>
Fri, 20 Jan 2012 20:07:25 +0000 (15:07 -0500)
committerBill Erickson <berick@esilibrary.com>
Fri, 20 Jan 2012 20:07:25 +0000 (15:07 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0671.schema.copy_location_alert.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.copy_location_alert.sql [deleted file]

index 5958ac7..06ef826 100644 (file)
@@ -86,7 +86,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 ('0670', :eg_version); -- berick/senator
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0671', :eg_version); -- tsbere/berick
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0671.schema.copy_location_alert.sql b/Open-ILS/src/sql/Pg/upgrade/0671.schema.copy_location_alert.sql
new file mode 100644 (file)
index 0000000..39d84e2
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0671', :eg_version);
+
+ALTER TABLE asset.copy_location
+    ADD COLUMN checkin_alert BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.copy_location_alert.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.copy_location_alert.sql
deleted file mode 100644 (file)
index 5c48390..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE asset.copy_location
-    ADD COLUMN checkin_alert BOOL NOT NULL DEFAULT FALSE;