Bug 3849: DBRev 18.06.00.001
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
b79ce63f65
commit
73b0542354
3 changed files with 16 additions and 12 deletions
2
Koha.pm
2
Koha.pm
|
@ -29,7 +29,7 @@ use vars qw{ $VERSION };
|
|||
# - #4 : the developer version. The 4th number is the database subversion.
|
||||
# used by developers when the database changes. updatedatabase take care of the changes itself
|
||||
# and is automatically called by Auth.pm when needed.
|
||||
$VERSION = "18.06.00.000";
|
||||
$VERSION = "18.06.00.001";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
UPDATE permissions SET description = 'Manage budgets' WHERE code = 'period_manage';
|
||||
UPDATE permissions SET description = 'Manage funds' WHERE code = 'budget_manage';
|
||||
UPDATE permissions SET description = 'Modify funds (can''t create lines, but can modify existing ones)' WHERE code = 'budget_modify';
|
||||
UPDATE permissions SET description = 'Manage baskets and order lines' WHERE code = 'order_manage';
|
||||
UPDATE permissions SET description = 'Manage all baskets and order lines, regardless of restrictions on them' WHERE code = 'order_manage_all';
|
||||
UPDATE permissions SET description = 'Manage basket groups' WHERE code = 'group_manage';
|
||||
UPDATE permissions SET description = 'Receive orders and manage shipments' WHERE code = 'order_receive';
|
||||
UPDATE permissions SET description = 'Add and delete funds (but can''t modify funds)' WHERE code = 'budget_add_del';
|
||||
UPDATE permissions SET description = 'Manage all funds' WHERE code = 'budget_manage_all';
|
||||
|
||||
/* Bug 3849: Rephrase acquisition permissions to be more clear */
|
|
@ -16057,6 +16057,21 @@ if( CheckVersion( $DBversion ) ) {
|
|||
print "Upgrade to $DBversion done (Koha 18.06 - It's Adventure time!)\n";
|
||||
}
|
||||
|
||||
$DBversion = '18.06.00.001';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do(q{UPDATE permissions SET description = 'Manage budgets' WHERE code = 'period_manage';});
|
||||
$dbh->do(q{UPDATE permissions SET description = 'Manage funds' WHERE code = 'budget_manage';});
|
||||
$dbh->do(q{UPDATE permissions SET description = 'Modify funds (can''t create lines, but can modify existing ones)' WHERE code = 'budget_modify';});
|
||||
$dbh->do(q{UPDATE permissions SET description = 'Manage baskets and order lines' WHERE code = 'order_manage';});
|
||||
$dbh->do(q{UPDATE permissions SET description = 'Manage all baskets and order lines, regardless of restrictions on them' WHERE code = 'order_manage_all';});
|
||||
$dbh->do(q{UPDATE permissions SET description = 'Manage basket groups' WHERE code = 'group_manage';});
|
||||
$dbh->do(q{UPDATE permissions SET description = 'Receive orders and manage shipments' WHERE code = 'order_receive';});
|
||||
$dbh->do(q{UPDATE permissions SET description = 'Add and delete funds (but can''t modify funds)' WHERE code = 'budget_add_del';});
|
||||
$dbh->do(q{UPDATE permissions SET description = 'Manage all funds' WHERE code = 'budget_manage_all';});
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 3849- Improve descriptions of granular acquisition permissions)\n";
|
||||
}
|
||||
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
|
||||
|
|
Loading…
Reference in a new issue