Classes/Console/Database/Schema/SchemaUpdateResultRenderer.php
public function renderErrors(SchemaUpdateResult $result, ConsoleOutput $output, $includeStatements = false, $maxStatementLength = 90)
    {
        $tableRows = [];
        $messageLength = $includeStatements ? (int)($maxStatementLength * .3) : $maxStatementLength;
        $statementLength = (int)($maxStatementLength * 0.6);
        foreach ($result->getErrors() as $type => $errors) {
            $typeLabel = self::$schemaUpdateTypeLabels[(string)$type];
            foreach ($errors as $error) {
                $row = [$typeLabel, implode(PHP_EOL, $this->getTruncatedQueries([$error['message']], $messageLength))];
                if ($includeStatements) {
                    $row = [$typeLabel, implode(PHP_EOL, $this->getTruncatedQueries([$error['statement']], $statementLength)), implode(PHP_EOL, $this->getTruncatedQueries([$error['message']], $messageLength))];
                }
                $tableRows[] = $row;
                $tableRows[] = $includeStatements ? ['', '', ''] : ['', ''];
                $typeLabel = '';
            }
        }
        $tableHeader = ['Type', 'Message'];
        if ($includeStatements) {
            $tableHeader = ['Type', 'SQL Statement', 'Message'];
        }
        $output->outputTable($tableRows, $tableHeader);
    }
public function renderErrors(SchemaUpdateResult $result, ConsoleOutput $output, $includeStatements = false, $maxStatementLength = 90)
    {
        $tableRows = [];
        $messageLength = $includeStatements ? (int)($maxStatementLength * .3) : $maxStatementLength;
        $statementLength = (int)($maxStatementLength * 0.6);
        foreach ($result->getErrors() as $type => $errors) {
            $typeLabel = self::$schemaUpdateTypeLabels[(string)$type];
            foreach ($errors as $error) {
                $row = [$typeLabel, implode(PHP_EOL, $this->getTruncatedQueries([$error['message']], $messageLength))];
                if ($includeStatements) {
                    $row = [$typeLabel, implode(PHP_EOL, $this->getTruncatedQueries([$error['statement']], $statementLength)), implode(PHP_EOL, $this->getTruncatedQueries([$error['message']], $messageLength))];
                }
                $tableRows[] = $row;
                $tableRows[] = $includeStatements ? ['', '', ''] : ['', ''];
                $typeLabel = '';
            }
        }
        $tableHeader = ['Type', 'Message'];
        if ($includeStatements) {
            $tableHeader = ['Type', 'SQL Statement', 'Message'];
        }
        $output->outputTable($tableRows, $tableHeader);
    }
Renders a table for a schema update result

@param SchemaUpdateResult $result Result of the schema update
@param ConsoleOutput $output
@param bool $includeStatements
@param int $maxStatementLength