Permalink
Browse files

Merge pull request #343 from dotEvan/feature/migrations

Updates to PropelMigrationTask to better handle multiple datasources.
  • Loading branch information...
willdurand committed Apr 24, 2012
2 parents c3e9bbd + 2097c08 commit e769175d54bc00833948568d7eced6173343997d
Showing with 5 additions and 0 deletions.
  1. +5 −0 generator/lib/task/PropelMigrationTask.php
@@ -84,6 +84,11 @@ public function main()
count($statements),
$datasource
));
+ }
+
+ // migrations for datasources have passed - update the timestamp
+ // for all datasources
+ foreach ($manager->getConnections() as $datasource => $connection) {
$manager->updateLatestMigrationTimestamp($datasource, $timestamp);
$this->log(sprintf(
'Updated latest migration date to %d for datasource "%s"',

0 comments on commit e769175

Please sign in to comment.