Skip to content

Commit

Permalink
Fixed propel:diff task when no difference exists.
Browse files Browse the repository at this point in the history
Closes #33
  • Loading branch information
fzaninotto committed Apr 13, 2011
1 parent 96101d8 commit 950b8c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/task/sfPropelDiffTask.class.php
Expand Up @@ -137,8 +137,10 @@ protected function execute($arguments = array(), $options = array())
}
$databaseDiff = PropelDatabaseComparator::computeDiff($database, $appData->getDatabase($name));

if (!$databaseDiff && $options['verbose']) {
$this->logSection('propel', sprintf(' Same XML and database structures for datasource "%s" - no diff to generate', $name), null, 'COMMENT');
if (!$databaseDiff) {
if($options['verbose']) {
$this->logSection('propel', sprintf(' Same XML and database structures for datasource "%s" - no diff to generate', $name), null, 'COMMENT');
}
continue;
}

Expand All @@ -154,7 +156,7 @@ protected function execute($arguments = array(), $options = array())

if (!$migrationsUp)
{
$this->logSection('propel', 'Same XML and database structures for all datasource - no diff to generate');
$this->logSection('propel', 'Same XML and database structures for all datasources - no diff to generate');
return;
}

Expand Down

0 comments on commit 950b8c0

Please sign in to comment.