Stamping upgrade script for YAOUS-target-when-closed
authorMike Rylander <mrylander@gmail.com>
Fri, 28 Oct 2011 15:09:32 +0000 (11:09 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 28 Oct 2011 15:09:32 +0000 (11:09 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0644.data.YAOUS-target-when-closed.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-target-when-closed.sql [deleted file]

index 9234024..31a7ac4 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 ('0643', :eg_version); -- miker/tsbere
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0644', :eg_version); -- senator/miker
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0644.data.YAOUS-target-when-closed.sql b/Open-ILS/src/sql/Pg/upgrade/0644.data.YAOUS-target-when-closed.sql
new file mode 100644 (file)
index 0000000..de9a16b
--- /dev/null
@@ -0,0 +1,24 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0644', :eg_version);
+
+INSERT into config.org_unit_setting_type (name, grp, label, description, datatype) VALUES
+( 'circ.holds.target_when_closed', 'circ',
+    oils_i18n_gettext('circ.holds.target_when_closed',
+        'Target copies for a hold even if copy''s circ lib is closed',
+        'coust', 'label'),
+    oils_i18n_gettext('circ.holds.target_when_closed',
+        'If this setting is true at a given org unit or one of its ancestors, the hold targeter will target copies from this org unit even if the org unit is closed (according to the actor.org_unit.closed_date table).',
+        'coust', 'description'),
+    'bool'),
+( 'circ.holds.target_when_closed_if_at_pickup_lib', 'circ',
+    oils_i18n_gettext('circ.holds.target_when_closed_if_at_pickup_lib',
+        'Target copies for a hold even if copy''s circ lib is closed IF the circ lib is the hold''s pickup lib',
+        'coust', 'label'),
+    oils_i18n_gettext('circ.holds.target_when_closed_if_at_pickup_lib',
+        'If this setting is true at a given org unit or one of its ancestors, the hold targeter will target copies from this org unit even if the org unit is closed (according to the actor.org_unit.closed_date table) IF AND ONLY IF the copy''s circ lib is the same as the hold''s pickup lib.',
+        'coust', 'description'),
+    'bool')
+;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-target-when-closed.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-target-when-closed.sql
deleted file mode 100644 (file)
index 0ab7a08..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.org_unit_setting_type (name, grp, label, description, datatype) VALUES
-( 'circ.holds.target_when_closed', 'circ',
-    oils_i18n_gettext('circ.holds.target_when_closed',
-        'Target copies for a hold even if copy''s circ lib is closed',
-        'coust', 'label'),
-    oils_i18n_gettext('circ.holds.target_when_closed',
-        'If this setting is true at a given org unit or one of its ancestors, the hold targeter will target copies from this org unit even if the org unit is closed (according to the actor.org_unit.closed_date table).',
-        'coust', 'description'),
-    'bool'),
-( 'circ.holds.target_when_closed_if_at_pickup_lib', 'circ',
-    oils_i18n_gettext('circ.holds.target_when_closed_if_at_pickup_lib',
-        'Target copies for a hold even if copy''s circ lib is closed IF the circ lib is the hold''s pickup lib',
-        'coust', 'label'),
-    oils_i18n_gettext('circ.holds.target_when_closed_if_at_pickup_lib',
-        'If this setting is true at a given org unit or one of its ancestors, the hold targeter will target copies from this org unit even if the org unit is closed (according to the actor.org_unit.closed_date table) IF AND ONLY IF the copy''s circ lib is the same as the hold''s pickup lib.',
-        'coust', 'description'),
-    'bool')
-;
-
-COMMIT;