LP1859701 - Stamping upgrade script
authorMichele Morgan <mmorgan@noblenet.org>
Fri, 28 Oct 2022 20:02:03 +0000 (16:02 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Fri, 28 Oct 2022 20:02:03 +0000 (16:02 -0400)
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1352.data.angular-cash-reports.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-cash-reports.sql [deleted file]

index 823204f..db4bfb7 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 ('1351', :eg_version); -- tlittle/lstratton/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1352', :eg_version); -- berick/sandbergja/mmorgan 
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1352.data.angular-cash-reports.sql b/Open-ILS/src/sql/Pg/upgrade/1352.data.angular-cash-reports.sql
new file mode 100644 (file)
index 0000000..1233b20
--- /dev/null
@@ -0,0 +1,22 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1352', :eg_version);
+
+INSERT into config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.grid.admin.local.cash_reports.desk_payments', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.cash_reports.desk_payments',
+        'Grid Config: admin.local.cash_reports.desk_payments',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.admin.local.cash_reports.user_payments', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.admin.local.cash_reports.user_payments',
+        'Grid Config: admin.local.cash_reports.user_payments',
+        'cwst', 'label'
+    )
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-cash-reports.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-cash-reports.sql
deleted file mode 100644 (file)
index c8dd55e..0000000
+++ /dev/null
@@ -1,22 +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.cash_reports.desk_payments', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.cash_reports.desk_payments',
-        'Grid Config: admin.local.cash_reports.desk_payments',
-        'cwst', 'label'
-    )
-), (
-    'eg.grid.admin.local.cash_reports.user_payments', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.admin.local.cash_reports.user_payments',
-        'Grid Config: admin.local.cash_reports.user_payments',
-        'cwst', 'label'
-    )
-);
-
-COMMIT;