protected function compileKey( Blueprint $blueprint, Fluent $command, $type )
	{
		$columns = $this->columnize( $command->columns );

		$table = $this->wrapTable( $blueprint );

		$index = $this->wrap( $command->index );

		return "alter table {$table} add {$type} {$index}($columns)";
	}
protected function compileKey( Blueprint $blueprint, Fluent $command, $type )
	{
		$columns = $this->columnize( $command->columns );

		$table = $this->wrapTable( $blueprint );

		$index = $this->wrap( $command->index );

		return "alter table {$table} add {$type} {$index}($columns)";
	}
protected function compileKey ( Blueprint $ blueprint , Fluent $ command , $ type ) { $ columns = $ this -> columnize ( $ command -> columns ) ; $ table = $ this -> wrapTable ( $ blueprint ) ; $ index = $ this -> wrap ( $ command -> index ) ; return "alter table {$table} add {$type} {$index}($columns)" ; }
Compile an index creation command.

@param Blueprint $blueprint
@param Fluent $command
@param  string $type
@return string
Compile an index creation command .