From: Jason Stephenson Date: Thu, 4 Aug 2011 14:13:56 +0000 (-0400) Subject: Upgrade script for LP818311 branch. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7613838f067f37db3a024075559430662c3d87e0;p=contrib%2FConifer.git Upgrade script for LP818311 branch. Signed-off-by: Jason Stephenson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.lp818311.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.lp818311.sql new file mode 100644 index 0000000000..4e7887e899 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.lp818311.sql @@ -0,0 +1,21 @@ +--Upgrade script for lp818311. + +BEGIN; + +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' )); + +INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable) + SELECT + pgt.id, perm.id, aout.depth, TRUE + FROM + permission.grp_tree pgt, + permission.perm_list perm, + actor.org_unit_type aout + WHERE + pgt.name = 'Acquisitions Administrator' AND + aout.name = 'Consortium' AND + perm.code = 'ACQ_INVOICE_REOPEN'; + +COMMIT;