Remove unused bypass hold library setting
authorDaniel Rizea <danielrizea27@gmail.com>
Thu, 12 Apr 2012 19:10:53 +0000 (15:10 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 10 Oct 2012 20:09:55 +0000 (16:09 -0400)
Added sql upgrade script that removes bypass hold.. library setting

[This lacks Daniel's signoff, but I've tested this and it works, so I'll
let it pass this time just for the sake of getting one more bug closed.]

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/0739.remove_bypass_hold_library_setting.sql [new file with mode: 0644]

index e1f8381..41a66b7 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 ('0738', :eg_version); -- senator/dbwells
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0739', :eg_version); -- drizea/senator
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index e5daf85..7a6eb16 100644 (file)
@@ -2999,15 +2999,6 @@ INSERT into config.org_unit_setting_type
         'coust', 'description'),
     'link', 'ccs')
 
-,( 'circ.holds.clear_shelf.no_capture_holds', 'holds',
-    oils_i18n_gettext('circ.holds.clear_shelf.no_capture_holds',
-        'Bypass hold capture during clear shelf process',
-        'coust', 'label'),
-    oils_i18n_gettext('circ.holds.clear_shelf.no_capture_holds',
-        'During the clear shelf process, avoid capturing new holds on cleared items.',
-        'coust', 'description'),
-    'bool', null)
-
 ,( 'circ.holds.default_estimated_wait_interval', 'holds',
     oils_i18n_gettext('circ.holds.default_estimated_wait_interval',
         'Default Estimated Wait',
diff --git a/Open-ILS/src/sql/Pg/upgrade/0739.remove_bypass_hold_library_setting.sql b/Open-ILS/src/sql/Pg/upgrade/0739.remove_bypass_hold_library_setting.sql
new file mode 100644 (file)
index 0000000..66d3917
--- /dev/null
@@ -0,0 +1,13 @@
+-- remove the Bypass hold capture during clear shelf process setting
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0739', :eg_version);
+
+
+DELETE FROM actor.org_unit_setting WHERE name = 'circ.holds.clear_shelf.no_capture_holds';
+DELETE FROM config.org_unit_setting_type_log WHERE field_name = 'circ.holds.clear_shelf.no_capture_holds';
+
+
+DELETE FROM config.org_unit_setting_type WHERE name = 'circ.holds.clear_shelf.no_capture_holds';
+
+COMMIT;