LP#1903749 - Add upgrade script for yaous user/mmorgan/lp1903749_holds_stalling_adjacent_copies_upgrade_script
authorMichele Morgan <mmorgan@noblenet.org>
Fri, 13 Aug 2021 19:36:49 +0000 (19:36 +0000)
committerMichele Morgan <mmorgan@noblenet.org>
Fri, 13 Aug 2021 19:53:24 +0000 (19:53 +0000)
Adds the circ.holds.adjacent_target_while_stalling org unit setting.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-circ-holds-adjacent-target-while-stalling.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-circ-holds-adjacent-target-while-stalling.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-circ-holds-adjacent-target-while-stalling.sql
new file mode 100644 (file)
index 0000000..ac1a99b
--- /dev/null
@@ -0,0 +1,24 @@
+BEGIN;\r
+\r
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);\r
+\r
+INSERT INTO config.org_unit_setting_type\r
+    (grp, name, datatype, label, description)\r
+VALUES (\r
+    'holds',\r
+    'circ.holds.adjacent_target_while_stalling', 'bool',\r
+    oils_i18n_gettext(\r
+        'circ.holds.adjacent_target_while_stalling',\r
+        'Allow adjacent copies to capture when Soft Stalling',\r
+        'coust',\r
+        'label'\r
+    ),\r
+    oils_i18n_gettext(\r
+        'circ.holds.adjacent_target_while_stalling',\r
+        'Allow adjacent copies at the targeted library to capture when Soft Stalling interval is set',\r
+        'coust',\r
+        'description'\r
+    )\r
+);\r
+\r
+COMMIT;\r