Bug 8289 Upgrading from 2.2 does not work anymore
authorPaul Poulain <paul.poulain@biblibre.com>
Fri, 22 Jun 2012 09:10:18 +0000 (11:10 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 25 Jun 2012 14:15:42 +0000 (16:15 +0200)
The updatedatabase22to30.pl script update the engine from MyISAM to InnoDB for most tables.

However, the TYPE=InnoDB was deprecated, and is not removed.
The correct syntax is now ENGINE=InnoDB

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
installer/data/mysql/update22to30.pl

index 76bb3c2..23d7a75 100755 (executable)
@@ -3022,7 +3022,7 @@ my $DBversion = "3.00.00.000";
         next if $table->{Name} eq 'auth_subfield_table';
         if ($table->{Engine} ne 'InnoDB') {
             print "moving $table->{Name} to InnoDB\n";
-            $dbh->do("ALTER TABLE $table->{Name} TYPE = innodb");
+            $dbh->do("ALTER TABLE $table->{Name} ENGINE = innodb");
         }
         unless ($table->{Collation} =~ /^utf8/) {
             print "moving $table->{Name} to utf8\n";