]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/XXXX-create-transit-cancel-time-column.sql
LP#1612752 - Do not clobber local perm description changes.
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / XXXX-create-transit-cancel-time-column.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
4
5 ALTER TABLE action.transit_copy
6         ADD COLUMN cancel_time TIMESTAMPTZ;
7
8 -- change "abort" to "cancel" in stock perm descriptions
9 UPDATE permission.perm_list 
10         SET description = 'Allow a user to cancel a copy transit if the user is at the transit destination or source' 
11         WHERE code = 'ABORT_TRANSIT'
12         AND description = 'Allow a user to abort a copy transit if the user is at the transit destination or source';
13 UPDATE permission.perm_list 
14         SET description = 'Allow a user to cancel a copy transit if the user is not at the transit source or dest' 
15         WHERE code = 'ABORT_REMOTE_TRANSIT'
16         AND description = 'Allow a user to abort a copy transit if the user is not at the transit source or dest';
17 UPDATE permission.perm_list 
18         SET description = 'Allows a user to cancel a transit on a copy with status of LOST' 
19         WHERE code = 'ABORT_TRANSIT_ON_LOST'
20         AND description = 'Allows a user to abort a transit on a copy with status of LOST';
21 UPDATE permission.perm_list 
22         SET description = 'Allows a user to cancel a transit on a copy with status of MISSING' 
23         WHERE code = 'ABORT_TRANSIT_ON_MISSING'
24         AND description = 'Allows a user to abort a transit on a copy with status of MISSING';
25 COMMIT;