Permalink
Browse files

Merge pull request #289 from DragonBe/dbdeploy-quickfix

Quickfix on DbDeployTask for final update change log table
  • Loading branch information...
2 parents 473fe20 + 1132f85 commit 7ab91f93cd4203cf87c6879180ac428a444220e7 @mrook mrook committed Jun 9, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 classes/phing/tasks/ext/dbdeploy/DbDeployTask.php
@@ -269,6 +269,8 @@ protected function generateSql($undo = false)
AND delta_set = \'' . $this->deltaSet . '\';' . "\n";
} else {
$sql .= substr($contents, 0, $split);
+ // Ensuring there's a newline after the final -- //
+ $sql .= PHP_EOL;
$sql .= 'UPDATE ' . DbDeployTask::$TABLE_NAME . '
SET complete_dt = ' . $this->dbmsSyntax->generateTimestamp() . '
WHERE change_number = ' . $fileChangeNumber . '

0 comments on commit 7ab91f9

Please sign in to comment.