src/Xethron/MigrationsGenerator/MigrateGenerateCommand.php
protected function generateTablesAndIndices( array $tables )
	{
		$this->method = 'create';

		foreach ( $tables as $table ) {
			$this->table = $table;
			$this->migrationName = 'create_'. $this->table .'_table';
			$this->fields = $this->schemaGenerator->getFields( $this->table );

			$this->generate();
		}
	}
protected function generateTablesAndIndices( array $tables )
	{
		$this->method = 'create';

		foreach ( $tables as $table ) {
			$this->table = $table;
			$this->migrationName = 'create_'. $this->table .'_table';
			$this->fields = $this->schemaGenerator->getFields( $this->table );

			$this->generate();
		}
	}
protected function generateTablesAndIndices ( array $ tables ) { $ this -> method = 'create' ; foreach ( $ tables as $ table ) { $ this -> table = $ table ; $ this -> migrationName = 'create_' . $ this -> table . '_table' ; $ this -> fields = $ this -> schemaGenerator -> getFields ( $ this -> table ) ; $ this -> generate ( ) ; } }
Generate tables and index migrations.

@param  array $tables List of tables to create migrations for
@return void
Generate tables and index migrations .