Stamping upgrade script for reservation capture notification~
authorMike Rylander <>
Wed, 7 Sep 2011 20:59:31 +0000 (16:59 -0400)
committerMike Rylander <>
Wed, 7 Sep 2011 20:59:31 +0000 (16:59 -0400)
Signed-off-by: Mike Rylander <>
Open-ILS/src/sql/Pg/upgrade/0617.schema.add-reservation-email-notify.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.add-reservation-email-notify.sql [deleted file]

index dafba05..94f82dd 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 ('0616', :eg_version); -- miker/stevecallender
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0617', :eg_version); -- miker/jeff-davis
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0617.schema.add-reservation-email-notify.sql b/Open-ILS/src/sql/Pg/upgrade/0617.schema.add-reservation-email-notify.sql
new file mode 100644 (file)
index 0000000..9ca561c
--- /dev/null
@@ -0,0 +1,19 @@
+SELECT evergreen.upgrade_deps_block_check('0617', :eg_version);
+-- add notify columns to booking.reservation
+ALTER TABLE booking.reservation
+-- create the hook and validator
+INSERT INTO action_trigger.hook (key, core_type, description, passive)
+  VALUES ('reservation.available', 'bresv', 'A reservation is available for pickup', false);
+INSERT INTO action_trigger.validator (module, description)
+  VALUES ('ReservationIsAvailable','Checked that a reserved resource is available for checkout');
+-- create org unit setting to toggle checkbox display
+INSERT INTO config.org_unit_setting_type (name, label, description, datatype)
+  VALUES ('booking.allow_email_notify', 'booking.allow_email_notify', 'Permit email notification when a reservation is ready for pickup.', 'bool');
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.add-reservation-email-notify.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.add-reservation-email-notify.sql
deleted file mode 100644 (file)
index cca875a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
--- add notify columns to booking.reservation
-ALTER TABLE booking.reservation
--- create the hook and validator
-INSERT INTO action_trigger.hook (key, core_type, description, passive)
-  VALUES ('reservation.available', 'bresv', 'A reservation is available for pickup', false);
-INSERT INTO action_trigger.validator (module, description)
-  VALUES ('ReservationIsAvailable','Checked that a reserved resource is available for checkout');
--- create org unit setting to toggle checkbox display
-INSERT INTO config.org_unit_setting_type (name, label, description, datatype)
-  VALUES ('booking.allow_email_notify', 'booking.allow_email_notify', 'Permit email notification when a reservation is ready for pickup.', 'bool');