';
// If we have found wrong defaults inform about them.
if (count($wrongfields)) {
$r .= ' ' . $this->str['yeswrongdefaultsfound'] . ' ';
$r .= ' ';
foreach ($wrongfields as $obj) {
$xmldbtable = $obj->table;
$xmldbfield = $obj->field;
$physicaltext = self::display_default($obj->physicaldefault);
$xmldbtext = self::display_default($obj->xmldbdefault);
// Get the alter table command.
$sqlarr = $dbman->generator->getAlterFieldSQL($xmldbtable, $xmldbfield);
$r .= ' - ' . $this->str['table'] . ': ' . $xmldbtable->getName() . '. ' .
$this->str['field'] . ': ' . $xmldbfield->getName() . ', ' .
$this->str['expected'] . ' ' . $xmldbtext . ' ' .
$this->str['actual'] . ' ' . $physicaltext . '
';
// Add to output if we have sentences.
if ($sqlarr) {
$sqlarr = $dbman->generator->getEndedStatements($sqlarr);
$s .= '' . str_replace("\n", ' ', implode(' ', $sqlarr)) . ' ';
}
}
$r .= ' ';
// Add the SQL statements (all together).
$r .= ' ' . $s;
} else {
$r .= ' ' . $this->str['nowrongdefaultsfound'] . ' ';
}
$r .= ' |