$this->
markMigrationAsFinished($migration);
} /**
* Composite Method to apply all migrations
*
* @param AbstractMigration::MODUS_* $modus
*/
public function run($modus = AbstractMigration::MODUS_INSTALL
) { $this->
createSchemaTable();
$currentVersion =
$this->
getCurrentVersion();
$this->
log(sprintf('Current MigrationNumber: %s',
$currentVersion));
$migrations =
$this->
getMigrationsForVersion($currentVersion);
$this->
log(sprintf('Found %s migrations to apply', \
count($migrations)));
foreach ($migrations as $migration) { $this->
log(sprintf('Apply MigrationNumber: %s - %s',
$migration->
getVersion(),
$migration->
getLabel()));
try {