From: Michele Morgan Date: Thu, 24 Mar 2022 15:01:13 +0000 (-0400) Subject: lp1787968 Stamping upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cec56b83daae43aaf9874b6caada06218d418c61;p=evergreen%2Fmasslnc.git lp1787968 Stamping upgrade script Signed-off-by: Michele Morgan --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index be5d1d0ae6..7255a2c2a4 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 ('1317', :eg_version); -- gmc/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1318', :eg_version); -- phasefx/mmorgan CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1318.schema.jacket_uploader.sql b/Open-ILS/src/sql/Pg/upgrade/1318.schema.jacket_uploader.sql new file mode 100644 index 0000000000..4aecfdad6a --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1318.schema.jacket_uploader.sql @@ -0,0 +1,38 @@ +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +-- 950.data.seed-values.sql + +INSERT INTO config.global_flag (name, value, enabled, label) +VALUES ( + 'opac.cover_upload_compression', + 0, + TRUE, + oils_i18n_gettext( + 'opac.cover_upload_compression', + '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.', + 'cgf', 'label' + ) +); + +INSERT INTO config.org_unit_setting_type (name, label, grp, description, datatype) +VALUES ( + 'opac.cover_upload_max_file_size', + oils_i18n_gettext('opac.cover_upload_max_file_size', + 'Maximum file size for uploaded cover image files (at time of upload, prior to rescaling).', + 'coust', 'label'), + 'opac', + oils_i18n_gettext('opac.cover_upload_max_file_size', + 'The number of bytes to allow for a cover image upload. If unset, defaults to 10737418240 (roughly 10GB).', + 'coust', 'description'), + 'integer' +); + +INSERT INTO permission.perm_list ( id, code, description ) VALUES + ( 637, 'UPLOAD_COVER_IMAGE', oils_i18n_gettext(637, + 'Upload local cover images for added content.', 'ppl', 'description')) +; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.jacket_uploader.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.jacket_uploader.sql deleted file mode 100644 index 4aecfdad6a..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.jacket_uploader.sql +++ /dev/null @@ -1,38 +0,0 @@ -BEGIN; - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - --- 950.data.seed-values.sql - -INSERT INTO config.global_flag (name, value, enabled, label) -VALUES ( - 'opac.cover_upload_compression', - 0, - TRUE, - oils_i18n_gettext( - 'opac.cover_upload_compression', - '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.', - 'cgf', 'label' - ) -); - -INSERT INTO config.org_unit_setting_type (name, label, grp, description, datatype) -VALUES ( - 'opac.cover_upload_max_file_size', - oils_i18n_gettext('opac.cover_upload_max_file_size', - 'Maximum file size for uploaded cover image files (at time of upload, prior to rescaling).', - 'coust', 'label'), - 'opac', - oils_i18n_gettext('opac.cover_upload_max_file_size', - 'The number of bytes to allow for a cover image upload. If unset, defaults to 10737418240 (roughly 10GB).', - 'coust', 'description'), - 'integer' -); - -INSERT INTO permission.perm_list ( id, code, description ) VALUES - ( 637, 'UPLOAD_COVER_IMAGE', oils_i18n_gettext(637, - 'Upload local cover images for added content.', 'ppl', 'description')) -; - -COMMIT;