Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #343 from dotEvan/feature/migrations

Updates to PropelMigrationTask to better handle multiple datasources.
  • Loading branch information...
commit e769175d54bc00833948568d7eced6173343997d 2 parents c3e9bbd + 2097c08
@willdurand willdurand authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 generator/lib/task/PropelMigrationTask.php
View
5 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"',
Please sign in to comment.
Something went wrong with that request. Please try again.