Permalink
Browse files

Fixes SQL diff command when there is a custom migration table name de…

…fined
  • Loading branch information...
Thomas Boerger
Thomas Boerger committed Feb 20, 2012
1 parent 0eacc54 commit 41f605ad5ef6720960edd704067b610cc2ad456a
Showing with 3 additions and 2 deletions.
  1. +3 −2 generator/lib/task/PropelSQLDiffTask.php
@@ -106,7 +106,8 @@ public function main()
}
$manager = new PropelMigrationManager();
$manager->setConnections($connections);
- $manager->setMigrationDir($this->getOutputDirectory());
+ $manager->setMigrationDir($this->getOutputDirectory());
+ $manager->setMigrationTable($this->getGeneratorConfig()->getBuildProperty('migrationTable'));
if ($manager->hasPendingMigrations()) {
throw new Exception('Uncommitted migrations have been found ; you should either execute or delete them before rerunning the \'diff\' task');
@@ -186,4 +187,4 @@ public function main()
$this->log(' Once the migration class is valid, call the "migrate" task to execute it.');
}
}
-}
+}

0 comments on commit 41f605a

Please sign in to comment.