Bug 18403: DBRev 17.12.00.009
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Feb 2018 18:38:54 +0000 (15:38 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Feb 2018 18:41:43 +0000 (15:41 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha.pm
installer/data/mysql/atomicupdate/bug_xxxxx-add-permission.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 5aa10ab..0f0c91b 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 = "17.12.00.008";
+$VERSION = "17.12.00.009";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_xxxxx-add-permission.perl b/installer/data/mysql/atomicupdate/bug_xxxxx-add-permission.perl
deleted file mode 100644 (file)
index 0918c27..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-$DBversion = 'XXX';
-if( CheckVersion( $DBversion ) ) {
-    $dbh->do(q|
-        INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
-        (4, 'edit_borrowers', 'Add, modify and view patron information'),
-        (4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries');
-    |);
-
-    # We are lucky here, there is nothing else to do: flags 4-borrowers did not contain sub permissions
-
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug XXXXX - Add the view_borrower_infos_from_any_libraries permission )\n";
-}
index 8c30ed8..d1cf34c 100755 (executable)
@@ -15295,6 +15295,20 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = '17.12.00.009';
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q|
+        INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
+        (4, 'edit_borrowers', 'Add, modify and view patron information'),
+        (4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries');
+    |);
+
+    # We are lucky here, there is nothing else to do: flags 4-borrowers did not contain sub permissions
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 18403 - Add the view_borrower_infos_from_any_libraries permission )\n";
+}
+
 # DEVELOPER PROCESS, search for anything to execute in the db_update directory
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.