]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 516157: MySQL 6.x/5.2/5.4 uses "ENGINE", not "TYPE", for altering tables to InnoDB
authormkanat%bugzilla.org <>
Sun, 20 Sep 2009 22:33:59 +0000 (22:33 +0000)
committermkanat%bugzilla.org <>
Sun, 20 Sep 2009 22:33:59 +0000 (22:33 +0000)
Patch by Gerard J. Cerchio <gjpc@circlesoft.com> r=mkanat, a=mkanat

Bugzilla/DB/Mysql.pm

index 01cd239d74407b7e94817242eb2394c6f6a26a52..4f6f9d76fa35336b0013c49eb35a636512da9148 100644 (file)
@@ -381,7 +381,7 @@ EOT
               " most tables.\nConverting tables to InnoDB:\n";
         foreach my $table (@myisam_tables) {
             print "Converting table $table... ";
-            $self->do("ALTER TABLE $table TYPE = InnoDB");
+            $self->do("ALTER TABLE $table ENGINE = InnoDB");
             print "done.\n";
         }
     }