From: Jason Boyer Date: Fri, 11 Sep 2020 20:18:10 +0000 (-0400) Subject: LP1517298: Stamp Upgrade Script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=46929b37acb10257ec7793c2323d30f9e90cbe07;p=working%2FEvergreen.git LP1517298: Stamp Upgrade Script Signed-off-by: Jason Boyer --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 062edd23a2..5ee86b63aa 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 ('1229', :eg_version); -- khuckins/csharp/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1230', :eg_version); -- dbs/sandbergja/jboyer CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1230.data.support_matomo.sql b/Open-ILS/src/sql/Pg/upgrade/1230.data.support_matomo.sql new file mode 100644 index 0000000000..5ff2d31cb5 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1230.data.support_matomo.sql @@ -0,0 +1,36 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1230', :eg_version); + +INSERT INTO permission.perm_list + ( id, code, description ) +VALUES ( + 623, 'UPDATE_ORG_UNIT_SETTING.opac.matomo', oils_i18n_gettext(623, + 'Allows a user to configure Matomo Analytics org unit settings', 'ppl', 'description') +); + +INSERT into config.org_unit_setting_type + ( name, grp, label, description, datatype, update_perm ) +VALUES ( + 'opac.analytics.matomo_id', 'opac', + oils_i18n_gettext( + 'opac.analytics.matomo_id', + 'Matomo Site ID', + 'coust', 'label'), + oils_i18n_gettext('opac.analytics.matomo_id', + 'The Site ID for your Evergreen catalog. You can find the Site ID in the tracking code you got from Matomo.', + 'coust', 'description'), + 'string', 623 +), ( + 'opac.analytics.matomo_url', 'opac', + oils_i18n_gettext('opac.analytics.matomo_url', + 'Matomo URL', + 'coust', 'label'), + oils_i18n_gettext('opac.analytics.matomo_url', + 'The URL for your the Matomo software. Be sure to include the trailing slash, e.g. https://my-evergreen.matomo.cloud/', + 'coust', 'description'), + 'string', 623 +); + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.support_matomo.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.support_matomo.sql deleted file mode 100644 index e75ad448f1..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.support_matomo.sql +++ /dev/null @@ -1,36 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version); - -INSERT INTO permission.perm_list - ( id, code, description ) -VALUES ( - 623, 'UPDATE_ORG_UNIT_SETTING.opac.matomo', oils_i18n_gettext(623, - 'Allows a user to configure Matomo Analytics org unit settings', 'ppl', 'description') -); - -INSERT into config.org_unit_setting_type - ( name, grp, label, description, datatype, update_perm ) -VALUES ( - 'opac.analytics.matomo_id', 'opac', - oils_i18n_gettext( - 'opac.analytics.matomo_id', - 'Matomo Site ID', - 'coust', 'label'), - oils_i18n_gettext('opac.analytics.matomo_id', - 'The Site ID for your Evergreen catalog. You can find the Site ID in the tracking code you got from Matomo.', - 'coust', 'description'), - 'string', 623 -), ( - 'opac.analytics.matomo_url', 'opac', - oils_i18n_gettext('opac.analytics.matomo_url', - 'Matomo URL', - 'coust', 'label'), - oils_i18n_gettext('opac.analytics.matomo_url', - 'The URL for your the Matomo software. Be sure to include the trailing slash, e.g. https://my-evergreen.matomo.cloud/', - 'coust', 'description'), - 'string', 623 -); - -COMMIT; -