Bug 7976: Remove the borrow permission
[koha.git] / installer / data / mysql / updatedatabase.pl
index 7f93aff..9b3dde9 100755 (executable)
@@ -9977,6 +9977,7 @@ if ( CheckVersion($DBversion) ) {
     SetVersion ($DBversion);
 }
 
+
 $DBversion = "3.19.00.018";
 if ( CheckVersion($DBversion) ) {
     $dbh->do(q|
@@ -10554,6 +10555,17 @@ foreach my $file ( sort readdir $dirh ) {
     }
 }
 
+
+$DBversion = "3.19.00.XXX";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q|
+        DELETE FROM userflags WHERE bit=7;
+    |);
+    print "Upgrade to $DBversion done (Bug 7976 - Remove the 'borrow' permission)\n";
+    SetVersion($DBversion);
+}
+
+
 =head1 FUNCTIONS
 
 =head2 TableExists($table)