src/Database/Migration.php
/**
	 * Runs the migration.
	 *
	 * When in dry run mode, this will return an array of queries that attempted to run. Otherwise, returns `null`.
	 *
	 * @param MigrationBatch $batch
	 * @return SchemaStatement[]|null
	 */
Runs the migration.
When in dry run mode, this will return an array of queries that attempted to run. Otherwise, returns `null`.


Runs the migration . When in dry run mode this will return an array of queries that attempted to run . Otherwise returns ` null ` .
public function run(MigrationBatch $batch) {
		$migrator = $this->getMigrator();
		switch ($migrator->dryRun) {
			case false: return $this->runAsMigration($migrator, $batch);
			case true: return $this->runAsTest($migrator);
			default: throw new Exception("Migrator::dryRun must be type boolean, got " . gettype($migrator->dryRun));
		}
	}
public function run ( MigrationBatch $ batch ) { $ migrator = $ this -> getMigrator ( ) ; switch ( $ migrator -> dryRun ) { case false : return $ this -> runAsMigration ( $ migrator , $ batch ) ; case true : return $ this -> runAsTest ( $ migrator ) ; default : throw new Exception ( " Migrator::dryRun must be type boolean, got  " . gettype ( $ migrator -> dryRun ) ) ; } }
Runs the migration.
Runs the migration .