Bug 3849: DBRev 18.06.00.001
authorNick Clemens <nick@bywatersolutions.com>
Mon, 4 Jun 2018 15:21:06 +0000 (15:21 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 4 Jun 2018 17:40:24 +0000 (13:40 -0400)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_20793_reword_acq_permissions.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 37b9ef1..3ff1087 100644 (file)
--- a/Koha.pm
+++ b/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;
diff --git a/installer/data/mysql/atomicupdate/bug_20793_reword_acq_permissions.sql b/installer/data/mysql/atomicupdate/bug_20793_reword_acq_permissions.sql
deleted file mode 100644 (file)
index 384f860..0000000
+++ /dev/null
@@ -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 */
index 0c1f41f..c616f8a 100755 (executable)
@@ -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.