Read the migrations table from the configuration

This commit is contained in:
Kévin Gomez 2014-09-15 13:34:41 +01:00
commit 530403636a
5 changed files with 20 additions and 8 deletions

View file

@ -316,6 +316,18 @@ abstract class AbstractCommand extends ContainerAwareCommand
return null;
}
/**
* Returns the name of the migrations table.
*
* @return string
*/
protected function getMigrationsTable()
{
$config = $this->getContainer()->getParameter('propel.configuration');
return $config['migrations']['tableName'];
}
/**
* Returns the name of the default connection.
*