38 return "Migration to convert tables from MyISAM to Innodb service";
71 $this->db_name = $client_ini->readVariable(
'db',
'name');
81 $table_name = array_pop(
$rows);
83 if (is_string($table_name) && $table_name !==
'') {
85 $this->database->migrateTableToEngine($table_name);
88 "The migration of the following tables did throw errors, " .
89 "please resolve the problem before you continue: \n" . $table_name .
" -> " . $e->getMessage()
100 if ($this->db_name !== null) {
110 $set = $this->database->queryF(
"SELECT table_name 111 FROM INFORMATION_SCHEMA.TABLES 112 WHERE ENGINE != %s AND table_schema = %s;", [
'text',
'text'], [
116 while ($row = $this->database->fetchAssoc($set)) {
117 $tables[] = $row[
'table_name'];
getPreconditions(Environment $environment)
step(Environment $environment)
A migration is a potentially long lasting operation that can be broken into discrete steps...
prepare(Environment $environment)
Prepare the migration by means of some environment.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Signals that some goal won't be achievable by actions of the system ever.
getRemainingAmountOfSteps()
const MYSQL_ENGINE_INNODB
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
getDefaultAmountOfStepsPerRun()
const RESOURCE_CLIENT_INI