diff --git a/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php b/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php index a7b589563..61c211412 100644 --- a/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php +++ b/lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php @@ -186,7 +186,7 @@ class SchemaToolTask extends AbstractTask if ($isDrop) { if (isset($arguments['dump-sql'])) { foreach ($tool->getDropSchemaSql($classes) as $sql) { - $printer->writeln($sql); + $printer->writeln($sql . ";"); } } else { $printer->writeln('Dropping database schema...', 'INFO'); @@ -198,7 +198,7 @@ class SchemaToolTask extends AbstractTask if ($isCreate) { if (isset($arguments['dump-sql'])) { foreach ($tool->getCreateSchemaSql($classes) as $sql) { - $printer->writeln($sql); + $printer->writeln($sql . ";"); } } else { $printer->writeln('Creating database schema...', 'INFO'); @@ -212,7 +212,7 @@ class SchemaToolTask extends AbstractTask if (isset($arguments['dump-sql'])) { foreach ($tool->getUpdateSchemaSql($classes, $saveMode) as $sql) { - $printer->writeln($sql); + $printer->writeln($sql . ";"); } } else { $printer->writeln('Updating database schema...', 'INFO');