Bug 11944: DBRev 3.19.00.006
authorTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 13 Jan 2015 16:13:02 +0000 (13:13 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 13 Jan 2015 16:13:02 +0000 (13:13 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

installer/data/mysql/updatedatabase.pl
kohaversion.pl

index a778ddd..4653c02 100755 (executable)
@@ -9579,19 +9579,6 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
-$DBversion = "3.19.00.XXX";
-if ( CheckVersion($DBversion) ) {
-    $dbh->do(q|SET foreign_key_checks = 0|);;
-    my @tables = $dbh->tables();
-    for my $table ( @tables ) {
-        $dbh->do(qq|ALTER TABLE $table CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci|);
-    }
-    $dbh->do(q|SET foreign_key_checks = 1|);;
-
-    print "Upgrade to $DBversion done (Bug 11944 - Convert DB tables to utf8_unicode_ci)\n";
-    SetVersion ($DBversion);
-}
-
 $DBversion = "3.19.00.000";
 if ( CheckVersion($DBversion) ) {
     print "Upgrade to $DBversion done (there's life after 3.18)\n";
@@ -9669,6 +9656,19 @@ if(CheckVersion($DBversion)) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.19.00.006";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q|SET foreign_key_checks = 0|);;
+    my @tables = $dbh->tables();
+    for my $table ( @tables ) {
+        $dbh->do(qq|ALTER TABLE $table CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci|);
+    }
+    $dbh->do(q|SET foreign_key_checks = 1|);;
+
+    print "Upgrade to $DBversion done (Bug 11944 - Convert DB tables to utf8_unicode_ci)\n";
+    SetVersion ($DBversion);
+}
+
 =head1 FUNCTIONS
 
 =head2 TableExists($table)
index 52acd3d..bee3709 100644 (file)
@@ -17,7 +17,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.19.00.005';
+    our $VERSION = '3.19.00.006';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install