Commit dcfb856d authored by beberlei's avatar beberlei

[2.0] DDC-259 - Added SQL statement terminator symbol to dump-sql mode SchemaToolTask

parent 703ba989
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment