public executeMigrations ( string $file, |
||
$file | string | The path to the Updates file. |
$migrations | An array of migrations |
public function executeMigrations($file, $migrations)
{
foreach ($migrations as $index => $migration) {
$migration = $this->keepBcForOldMigrationQueryFormat($index, $migration);
$this->executeMigration($file, $migration);
}
}
public function doUpdate(Updater $updater) { try { $updater->executeMigrations(__FILE__, $this->getMigrations($updater)); } catch (\Exception $e) { } }