# - #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;
+++ /dev/null
-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 */
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.