src/Database/Migrator.php
/**
	 * Creates a new batch for the next execution.
	 *
	 * @return MigrationBatch
	 */
Creates a new batch for the next execution.
Creates a new batch for the next execution .
public function createBatch() {
		$this->init();
		$this->createSchemaTable();
		$batches = $this->getBatches();
		$nextBatchNumber = empty($batches) ? 1 : ($batches[count($batches) - 1]->getId() + 1);
		$batch = new MigrationBatch($this, $nextBatchNumber, array(), array());
		$this->batches[$nextBatchNumber] = $batch;
		return $batch;
	}
public function createBatch ( ) { $ this -> init ( ) ; $ this -> createSchemaTable ( ) ; $ batches = $ this -> getBatches ( ) ; $ nextBatchNumber = empty ( $ batches ) ? 1 : ( $ batches [ count ( $ batches ) - 1 ] -> getId ( ) + 1 ) ; $ batch = new MigrationBatch ( $ this , $ nextBatchNumber , array ( ) , array ( ) ) ; $ this -> batches [ $ nextBatchNumber ] = $ batch ; return $ batch ; }
Creates a new batch for the next execution.
Creates a new batch for the next execution .