37 return "Migration to convert tables from MyISAM to Innodb service";
70 $this->db_name = $client_ini->readVariable(
'db',
'name');
80 $table_name = array_pop($rows);
82 if (is_string($table_name) && $table_name !==
'') {
84 $this->database->migrateTableToEngine($table_name);
87 "The migration of the following tables did throw errors, " .
88 "please resolve the problem before you continue: \n" . $table_name .
" -> " . $e->getMessage()
99 if ($this->db_name !==
null) {
109 $set = $this->database->queryF(
"SELECT table_name 110 FROM INFORMATION_SCHEMA.TABLES 111 WHERE ENGINE != %s AND table_schema = %s;", [
'text',
'text'], [
115 while ($row = $this->database->fetchAssoc($set)) {
116 $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.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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