From: Mike Rylander Date: Fri, 25 May 2018 18:12:25 +0000 (-0400) Subject: Moving upgrade script into place X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0de55610cb544e58e7e7c4fc8286e24177a12ae8;p=evergreen%2Fjoelewis.git Moving upgrade script into place Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/upgrade/1111.data.copy_alert_perms.sql b/Open-ILS/src/sql/Pg/upgrade/1111.data.copy_alert_perms.sql new file mode 100644 index 0000000000..f4c99b5dce --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1111.data.copy_alert_perms.sql @@ -0,0 +1,35 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1111', :eg_version); + +INSERT INTO permission.perm_list ( id, code, description ) VALUES + ( 594, 'ADMIN_COPY_ALERT_TYPE', oils_i18n_gettext( 594, + 'Administer copy alert types', 'ppl', 'description' )), + ( 595, 'CREATE_COPY_ALERT_TYPE', oils_i18n_gettext( 595, + 'Create copy alert types', 'ppl', 'description' )), + ( 596, 'UPDATE_COPY_ALERT_TYPE', oils_i18n_gettext( 596, + 'Update copy alert types', 'ppl', 'description' )), + ( 597, 'DELETE_COPY_ALERT_TYPE', oils_i18n_gettext( 597, + 'Delete copy alert types', 'ppl', 'description' )), + ( 598, 'ADMIN_COPY_ALERT_SUPPRESS', oils_i18n_gettext( 598, + 'Administer copy alert suppression', 'ppl', 'description' )), + ( 599, 'CREATE_COPY_ALERT_SUPPRESS', oils_i18n_gettext( 599, + 'Create copy alert suppression', 'ppl', 'description' )), + ( 600, 'UPDATE_COPY_ALERT_SUPPRESS', oils_i18n_gettext( 600, + 'Update copy alert suppression', 'ppl', 'description' )), + ( 601, 'DELETE_COPY_ALERT_SUPPRESS', oils_i18n_gettext( 601, + 'Delete copy alert suppression', 'ppl', 'description' )), + ( 602, 'ADMIN_COPY_ALERT', oils_i18n_gettext( 602, + 'Administer copy alerts', 'ppl', 'description' )), + ( 603, 'CREATE_COPY_ALERT', oils_i18n_gettext( 603, + 'Create copy alerts', 'ppl', 'description' )), + ( 604, 'VIEW_COPY_ALERT', oils_i18n_gettext( 604, + 'View copy alerts', 'ppl', 'description' )), + ( 605, 'UPDATE_COPY_ALERT', oils_i18n_gettext( 605, + 'Update copy alerts', 'ppl', 'description' )), + ( 606, 'DELETE_COPY_ALERT', oils_i18n_gettext( 606, + 'Delete copy alerts', 'ppl', 'description' )) +; + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.copy_alert_perms.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.copy_alert_perms.sql deleted file mode 100644 index f4c99b5dce..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.copy_alert_perms.sql +++ /dev/null @@ -1,35 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('1111', :eg_version); - -INSERT INTO permission.perm_list ( id, code, description ) VALUES - ( 594, 'ADMIN_COPY_ALERT_TYPE', oils_i18n_gettext( 594, - 'Administer copy alert types', 'ppl', 'description' )), - ( 595, 'CREATE_COPY_ALERT_TYPE', oils_i18n_gettext( 595, - 'Create copy alert types', 'ppl', 'description' )), - ( 596, 'UPDATE_COPY_ALERT_TYPE', oils_i18n_gettext( 596, - 'Update copy alert types', 'ppl', 'description' )), - ( 597, 'DELETE_COPY_ALERT_TYPE', oils_i18n_gettext( 597, - 'Delete copy alert types', 'ppl', 'description' )), - ( 598, 'ADMIN_COPY_ALERT_SUPPRESS', oils_i18n_gettext( 598, - 'Administer copy alert suppression', 'ppl', 'description' )), - ( 599, 'CREATE_COPY_ALERT_SUPPRESS', oils_i18n_gettext( 599, - 'Create copy alert suppression', 'ppl', 'description' )), - ( 600, 'UPDATE_COPY_ALERT_SUPPRESS', oils_i18n_gettext( 600, - 'Update copy alert suppression', 'ppl', 'description' )), - ( 601, 'DELETE_COPY_ALERT_SUPPRESS', oils_i18n_gettext( 601, - 'Delete copy alert suppression', 'ppl', 'description' )), - ( 602, 'ADMIN_COPY_ALERT', oils_i18n_gettext( 602, - 'Administer copy alerts', 'ppl', 'description' )), - ( 603, 'CREATE_COPY_ALERT', oils_i18n_gettext( 603, - 'Create copy alerts', 'ppl', 'description' )), - ( 604, 'VIEW_COPY_ALERT', oils_i18n_gettext( 604, - 'View copy alerts', 'ppl', 'description' )), - ( 605, 'UPDATE_COPY_ALERT', oils_i18n_gettext( 605, - 'Update copy alerts', 'ppl', 'description' )), - ( 606, 'DELETE_COPY_ALERT', oils_i18n_gettext( 606, - 'Delete copy alerts', 'ppl', 'description' )) -; - -COMMIT; -