Bug 18801: DBRev 16.11.13.001
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 29 Oct 2017 17:42:12 +0000 (18:42 +0100)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 29 Oct 2017 17:42:12 +0000 (18:42 +0100)
Koha.pm
installer/data/mysql/atomicupdate/bug18801.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 1424857..d989aee 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 = "16.11.13.000";
+$VERSION = "16.11.13.001";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug18801.perl b/installer/data/mysql/atomicupdate/bug18801.perl
deleted file mode 100644 (file)
index 8a8fd50..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-$DBversion = 'XXX';  # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-    # Fetch all auth types
-    my $authtypes = $dbh->selectcol_arrayref( q|SELECT authtypecode FROM auth_types| );
-
-    if( grep { $_ eq 'Default' } @$authtypes ) {
-        # If this exists as an authtypecode, we don't do anything
-    } else {
-        # Replace the incorrect Default by empty string
-        $dbh->do( q|UPDATE auth_header SET authtypecode='' WHERE authtypecode='Default'| );
-    }
-
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug 18801 - Update incorrect Default auth type codes)\n";
-}
index c6a5329..6c2859d 100755 (executable)
@@ -13890,6 +13890,23 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "16.11.13.001";
+if( CheckVersion( $DBversion ) ) {
+    # Fetch all auth types
+    my $authtypes = $dbh->selectcol_arrayref( q|SELECT authtypecode FROM auth_types| );
+
+    if( grep { $_ eq 'Default' } @$authtypes ) {
+        # If this exists as an authtypecode, we don't do anything
+    } else {
+        # Replace the incorrect Default by empty string
+        $dbh->do( q|UPDATE auth_header SET authtypecode='' WHERE authtypecode='Default'| );
+    }
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 18801 - Update incorrect Default auth type codes)\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.