From 1e140ad8693d616229c511166ad1284ecfb609a5 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 4 Aug 2011 15:10:36 -0400 Subject: [PATCH] Stamped upgrade script for ACQ_INVOICE_REOPEN permission addition Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- .../{XXXX.lp818311.sql => 0592.data.ACQ_INVOICE_REOPEN-perm.sql} | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.lp818311.sql => 0592.data.ACQ_INVOICE_REOPEN-perm.sql} (89%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index b0991d1f41..950947e05a 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -86,7 +86,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 ('0591', :eg_version); -- berick/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0592', :eg_version); -- mrperters-isl/miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.lp818311.sql b/Open-ILS/src/sql/Pg/upgrade/0592.data.ACQ_INVOICE_REOPEN-perm.sql similarity index 89% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.lp818311.sql rename to Open-ILS/src/sql/Pg/upgrade/0592.data.ACQ_INVOICE_REOPEN-perm.sql index 4e7887e899..5bc68dfa29 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.lp818311.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0592.data.ACQ_INVOICE_REOPEN-perm.sql @@ -2,6 +2,8 @@ BEGIN; +SELECT evergreen.upgrade_deps_block_check('0592', :eg_version); + INSERT INTO permission.perm_list ( id, code, description ) VALUES ( 512, 'ACQ_INVOICE_REOPEN', oils_i18n_gettext( 512, 'Allows a user to reopen an Acquisitions invoice', 'ppl', 'description' )); -- 2.11.0