public function run(MigrationContext $context)
	{
		$this->setContext($context);
		$this->createMigrationsTable();

		$all_migrations = $this->getAllMigrations();
		$executed_migrations = $this->getExecutedMigrations();

		$migrations_to_execute = array_diff($all_migrations, $executed_migrations);
		$this->executeMigrations($migrations_to_execute);

		$migrations_to_delete = array_diff($executed_migrations, $all_migrations);
		$this->deleteMigrations($migrations_to_delete);
	}
public function run(MigrationContext $context)
	{
		$this->setContext($context);
		$this->createMigrationsTable();

		$all_migrations = $this->getAllMigrations();
		$executed_migrations = $this->getExecutedMigrations();

		$migrations_to_execute = array_diff($all_migrations, $executed_migrations);
		$this->executeMigrations($migrations_to_execute);

		$migrations_to_delete = array_diff($executed_migrations, $all_migrations);
		$this->deleteMigrations($migrations_to_delete);
	}
public function run ( MigrationContext $ context ) { $ this -> setContext ( $ context ) ; $ this -> createMigrationsTable ( ) ; $ all_migrations = $ this -> getAllMigrations ( ) ; $ executed_migrations = $ this -> getExecutedMigrations ( ) ; $ migrations_to_execute = array_diff ( $ all_migrations , $ executed_migrations ) ; $ this -> executeMigrations ( $ migrations_to_execute ) ; $ migrations_to_delete = array_diff ( $ executed_migrations , $ all_migrations ) ; $ this -> deleteMigrations ( $ migrations_to_delete ) ; }
Executes outstanding migrations.

@param MigrationContext $context Context.

@return void
Executes outstanding migrations .