mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 18:04:43 +02:00
Reverting to previous version to respect cross-db. Final
tested solution arriving in hours. MDL-7357 Merged from MOODLE_18_STABLE
This commit is contained in:
parent
d490d87c22
commit
67dc1f78c6
@ -232,16 +232,17 @@ class check_indexes extends XMLDBAction {
|
||||
/// If we have found missing indexes inform about them
|
||||
if (count($missing_indexes)) {
|
||||
$r.= ' <p class="centerpara">' . $this->str['yesmissingindexesfound'] . '</p>';
|
||||
$r.= ' <br /><br />';
|
||||
$r.= ' <ul>';
|
||||
foreach ($missing_indexes as $obj) {
|
||||
$xmldb_table = $obj->table;
|
||||
$xmldb_index = $obj->index;
|
||||
$sqlarr = $xmldb_table->getAddIndexSQL($CFG->dbtype, $CFG->prefix, $xmldb_index, false);
|
||||
$r.= ' #' . $this->str['table'] . ': ' . $xmldb_table->getName() . '. ' .
|
||||
$r.= ' <li>' . $this->str['table'] . ': ' . $xmldb_table->getName() . '. ' .
|
||||
$this->str['index'] . ': ' . $xmldb_index->readableInfo() . '<br />' .
|
||||
'<code>' . implode('<br />', $sqlarr) . ';</code><br /><br />';
|
||||
'<p><code>' . implode('<br />', $sqlarr) . '</code></p></li>';
|
||||
|
||||
}
|
||||
$r.= ' </ul>';
|
||||
} else {
|
||||
$r.= ' <p class="centerpara">' . $this->str['nomissingindexesfound'] . '</p>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user