mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
MDL-31165 fix InnoDB conversion query to use ENGINE parameter instead of legacy TYPE
This commit is contained in:
parent
fab02dd630
commit
11f06bd7f6
@ -76,7 +76,7 @@ if (!empty($options['engine'])) {
|
||||
}
|
||||
echo str_pad($table->name, 40). " - ";
|
||||
|
||||
$DB->change_database_structure("ALTER TABLE {$table->name} TYPE = $engine");
|
||||
$DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
|
||||
echo "DONE\n";
|
||||
$converted++;
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ if (data_submitted() and $confirm and confirm_sesskey()) {
|
||||
$DB->set_debug(true);
|
||||
foreach ($tables as $table) {
|
||||
$fulltable = $DB->get_prefix().$table;
|
||||
$DB->change_database_structure("ALTER TABLE $fulltable TYPE=INNODB");
|
||||
$DB->change_database_structure("ALTER TABLE $fulltable ENGINE=INNODB");
|
||||
}
|
||||
$DB->set_debug(false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user