]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/1318.schema.jacket_uploader.sql
lp1787968 Stamping upgrade script
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 1318.schema.jacket_uploader.sql
1 BEGIN;
2
3 -- check whether patch can be applied
4 SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
5
6 -- 950.data.seed-values.sql
7
8 INSERT INTO config.global_flag (name, value, enabled, label)
9 VALUES (
10     'opac.cover_upload_compression',
11     0,
12     TRUE,
13     oils_i18n_gettext(
14         'opac.cover_upload_compression',
15         'Cover image uploads are converted to PNG files with this compression, on a scale of 0 (no compression) to 9 (maximum compression), or -1 for the zlib default.',
16         'cgf', 'label'
17     )
18 );
19
20 INSERT INTO config.org_unit_setting_type (name, label, grp, description, datatype)
21 VALUES (
22     'opac.cover_upload_max_file_size',
23     oils_i18n_gettext('opac.cover_upload_max_file_size',
24         'Maximum file size for uploaded cover image files (at time of upload, prior to rescaling).',
25         'coust', 'label'),
26     'opac',
27     oils_i18n_gettext('opac.cover_upload_max_file_size',
28         'The number of bytes to allow for a cover image upload.  If unset, defaults to 10737418240 (roughly 10GB).',
29         'coust', 'description'),
30     'integer'
31 );
32
33 INSERT INTO permission.perm_list ( id, code, description ) VALUES
34  ( 637, 'UPLOAD_COVER_IMAGE', oils_i18n_gettext(637,
35     'Upload local cover images for added content.', 'ppl', 'description'))
36 ;
37
38 COMMIT;