From: Jane Sandberg Date: Fri, 30 Sep 2022 00:39:52 +0000 (-0700) Subject: LP1981739: stamp upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7d4576a521df0d197d191406d54196ceede2b2d3;p=evergreen%2Fpines.git LP1981739: stamp upgrade script --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 6e30a68097..0722cf34ce 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 index 0000000000..2da4ffc087 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1330.data.negative-balance-grid.sql @@ -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 index a0407f55db..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.negative-balance-grid.sql +++ /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;