Stamping upgrade script for hold request email notify default false
authorBen Shum <bshum@biblio.org>
Tue, 18 Dec 2012 05:12:38 +0000 (00:12 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 18 Dec 2012 05:18:45 +0000 (00:18 -0500)
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0746.action.hold_request.email_notify_default_false.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.action.hold_request.email_notify_default_false.sql [deleted file]

index 0886d9e..d069cc0 100644 (file)
@@ -87,7 +87,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 ('0745', :eg_version); -- mrpeters-isl/bshum/dbs
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0746', :eg_version); -- mrpeters-isl/bshum
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0746.action.hold_request.email_notify_default_false.sql b/Open-ILS/src/sql/Pg/upgrade/0746.action.hold_request.email_notify_default_false.sql
new file mode 100644 (file)
index 0000000..166f24f
--- /dev/null
@@ -0,0 +1,7 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0746', :eg_version);
+
+ALTER TABLE action.hold_request ALTER COLUMN email_notify SET DEFAULT 'false';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.action.hold_request.email_notify_default_false.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.action.hold_request.email_notify_default_false.sql
deleted file mode 100644 (file)
index f899cec..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-ALTER TABLE action.hold_request ALTER COLUMN email_notify SET DEFAULT 'false';
-
-COMMIT;