Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-31165 fix InnoDB conversion query to use ENGINE parameter instead…

… of legacy TYPE
  • Loading branch information...
commit 12c5ea8f699b5c51257e155f18526d629b05ca32 1 parent c1dc3a5
Petr Skoda skodak authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  admin/cli/mysql_engine.php
  2. +1 1  admin/innodb.php
2  admin/cli/mysql_engine.php
@@ -76,7 +76,7 @@
76 76 }
77 77 echo str_pad($table->name, 40). " - ";
78 78
79   - $DB->change_database_structure("ALTER TABLE {$table->name} TYPE = $engine");
  79 + $DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
80 80 echo "DONE\n";
81 81 $converted++;
82 82 }
2  admin/innodb.php
@@ -26,7 +26,7 @@
26 26 $DB->set_debug(true);
27 27 foreach ($tables as $table) {
28 28 $fulltable = $DB->get_prefix().$table;
29   - $DB->change_database_structure("ALTER TABLE $fulltable TYPE=INNODB");
  29 + $DB->change_database_structure("ALTER TABLE $fulltable ENGINE=INNODB");
30 30 }
31 31 $DB->set_debug(false);
32 32 }

0 comments on commit 12c5ea8

Please sign in to comment.
Something went wrong with that request. Please try again.