Permalink
Browse files

Changed returned value to true in sfPropelMigrate tasks

  • Loading branch information...
1 parent e58c43b commit 2592a6458653ea96c8779a46960e91743d76607b @rozwell rozwell committed Jul 31, 2012
@@ -64,7 +64,7 @@ protected function execute($arguments = array(), $options = array())
if (!$nextMigrationTimestamp = array_pop($previousTimestamps))
{
$this->logSection('propel', 'No migration were ever executed on this database - nothing to reverse.');
- return false;
+ return true;
}
$this->logSection('propel', sprintf(
'Executing migration %s down',
@@ -150,6 +150,8 @@ protected function execute($arguments = array(), $options = array())
{
$this->logSection('propel', 'Reverse migration complete. No more migration available for reverse');
}
+
+ return true;
}
}
@@ -63,7 +63,7 @@ protected function execute($arguments = array(), $options = array())
if (!$nextMigrationTimestamp = $manager->getFirstUpMigrationTimestamp())
{
$this->logSection('propel', 'All migrations were already executed - nothing to migrate.');
- return null;
+ return true;
}
$timestamps = $manager->getValidMigrationTimestamps();
@@ -142,6 +142,8 @@ protected function execute($arguments = array(), $options = array())
}
$this->logSection('propel', 'Migration complete. No further migration to execute.');
+
+ return true;
}
}
@@ -63,7 +63,7 @@ protected function execute($arguments = array(), $options = array())
if (!$nextMigrationTimestamp = $manager->getFirstUpMigrationTimestamp())
{
$this->logSection('propel', 'All migrations were already executed - nothing to migrate.');
- return false;
+ return true;
}
$this->logSection('propel', sprintf(
'Executing migration %s up',
@@ -142,6 +142,8 @@ protected function execute($arguments = array(), $options = array())
{
$this->logSection('propel', 'Migration complete. No further migration to execute.');
}
+
+ return true;
}
}

0 comments on commit 2592a64

Please sign in to comment.