]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/1230.data.support_matomo.sql
LP#1861319: stamp schema update
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 1230.data.support_matomo.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('1230', :eg_version);
4
5 INSERT INTO permission.perm_list
6     ( id, code, description )
7 VALUES (
8     623, 'UPDATE_ORG_UNIT_SETTING.opac.matomo', oils_i18n_gettext(623,
9     'Allows a user to configure Matomo Analytics org unit settings', 'ppl', 'description')
10 );
11
12 INSERT into config.org_unit_setting_type
13     ( name, grp, label, description, datatype, update_perm )
14 VALUES (
15     'opac.analytics.matomo_id', 'opac',
16     oils_i18n_gettext(
17     'opac.analytics.matomo_id',
18     'Matomo Site ID',
19     'coust', 'label'),
20     oils_i18n_gettext('opac.analytics.matomo_id',
21     'The Site ID for your Evergreen catalog. You can find the Site ID in the tracking code you got from Matomo.',
22     'coust', 'description'),
23     'string', 623
24 ), (
25     'opac.analytics.matomo_url', 'opac',
26     oils_i18n_gettext('opac.analytics.matomo_url',
27     'Matomo URL',
28     'coust', 'label'),
29     oils_i18n_gettext('opac.analytics.matomo_url',
30     'The URL for your the Matomo software. Be sure to include the trailing slash, e.g. https://my-evergreen.matomo.cloud/',
31     'coust', 'description'),
32     'string', 623
33 );
34
35 COMMIT;
36