diff --git a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php index 477f84c744..418afa990d 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php @@ -90,7 +90,9 @@ protected function executeSchemaCommand(InputInterface $input, OutputInterface $ if ($dumpSql) { $ui->text('The following SQL statements will be executed:'); $ui->newLine(); - $ui->listing($sqls); + foreach ($sqls as $sql) { + $ui->text(sprintf(' %s;', $sql)); + } } if ($force) { diff --git a/lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php index 4fd7e7dbed..3d9680fd55 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php @@ -81,7 +81,9 @@ protected function execute(InputInterface $input, OutputInterface $output) if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) { $sqls = $validator->getUpdateSchemaList(); $ui->comment(sprintf('%d schema diff(s) detected:', count($sqls))); - $ui->listing($sqls); + foreach ($sqls as $sql) { + $ui->text(sprintf(' %s;', $sql)); + } } $exit += 2;