LP1981739: stamp upgrade script
authorJane Sandberg <sandbergja@gmail.com>
Fri, 30 Sep 2022 00:39:52 +0000 (17:39 -0700)
committerJane Sandberg <sandbergja@gmail.com>
Fri, 30 Sep 2022 00:39:52 +0000 (17:39 -0700)
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1330.data.negative-balance-grid.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.negative-balance-grid.sql [deleted file]

index 6e30a68..0722cf3 100644 (file)
@@ -92,7 +92,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 ('1329', :eg_version); -- oajulianclementson/sandbergja
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1330', :eg_version); -- berick/gcollum/sandbergja
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1330.data.negative-balance-grid.sql b/Open-ILS/src/sql/Pg/upgrade/1330.data.negative-balance-grid.sql
new file mode 100644 (file)
index 0000000..2da4ffc
--- /dev/null
@@ -0,0 +1,23 @@
+
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1330', :eg_version);
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.grid.admin.local.negative_balances', 'gui', 'object', 
+    oils_i18n_gettext(
+        'eg.grid.admin.local.negative_balances',
+        'Patrons With Negative Balances Grid Settings',
+        'cwst', 'label'
+    )
+), (
+    'eg.orgselect.admin.local.negative_balances', 'gui', 'integer',
+    oils_i18n_gettext(
+        'eg.orgselect.admin.local.negative_balances',
+        'Default org unit for patron negative balances interface',
+        'cwst', 'label'
+    )
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.negative-balance-grid.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.negative-balance-grid.sql
deleted file mode 100644 (file)
index a0407f5..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-
-BEGIN;
-
--- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version);
-
-INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
-VALUES (
-    'eg.grid.admin.local.negative_balances', 'gui', 'object', 
-    oils_i18n_gettext(
-        'eg.grid.admin.local.negative_balances',
-        'Patrons With Negative Balances Grid Settings',
-        'cwst', 'label'
-    )
-), (
-    'eg.orgselect.admin.local.negative_balances', 'gui', 'integer',
-    oils_i18n_gettext(
-        'eg.orgselect.admin.local.negative_balances',
-        'Default org unit for patron negative balances interface',
-        'cwst', 'label'
-    )
-);
-
-COMMIT;