LP#1982031: stamp DB update
authorGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 01:17:50 +0000 (21:17 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 01:17:50 +0000 (21:17 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1349.data.org-setting-enc-desc.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-enc-desc.sql [deleted file]

index ec69db0..471f3d0 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 ('1348', :eg_version); -- berick/mmorgan/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1349', :eg_version); -- tlittle/gmonti/gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1349.data.org-setting-enc-desc.sql b/Open-ILS/src/sql/Pg/upgrade/1349.data.org-setting-enc-desc.sql
new file mode 100644 (file)
index 0000000..05c2f1c
--- /dev/null
@@ -0,0 +1,12 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1349', :eg_version);
+
+UPDATE config.org_unit_setting_type
+    SET label = 'Rollover encumbrances only',
+        description = 'Rollover encumbrances only when doing fiscal year end.  This makes money left in the old fund disappear, modeling its return to some outside entity.'
+    WHERE name = 'acq.fund.allow_rollover_without_money'
+    AND label = 'Allow funds to be rolled over without bringing the money along'
+    AND description = 'Allow funds to be rolled over without bringing the money along.  This makes money left in the old fund disappear, modeling its return to some outside entity.';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-enc-desc.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.org-setting-enc-desc.sql
deleted file mode 100644 (file)
index 37841dc..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-BEGIN;
-
-UPDATE config.org_unit_setting_type
-    SET label = 'Rollover encumbrances only',
-        description = 'Rollover encumbrances only when doing fiscal year end.  This makes money left in the old fund disappear, modeling its return to some outside entity.'
-    WHERE name = 'acq.fund.allow_rollover_without_money'
-    AND label = 'Allow funds to be rolled over without bringing the money along'
-    AND description = 'Allow funds to be rolled over without bringing the money along.  This makes money left in the old fund disappear, modeling its return to some outside entity.';
-
-COMMIT;