src/Database/Migration/Schema/Command.php
/**
	 * Compiles the command as an index.
	 *
	 * @return string
	 */
Compiles the command as an index.
@return string
Compiles the command as an index . @return string
private function compileIndex() {
		$indexName = array_get($this->parameters, 'index');
		$columns = array_get($this->parameters, 'columns');
		return str_join(
			($this->table->isCreating()) ? '' : 'ADD',
			Grammar::getKey($this->name),
			Grammar::compileName($indexName),
			Grammar::compileColumnList($columns)
		);
	}
private function compileIndex ( ) { $ indexName = array_get ( $ this -> parameters , 'index' ) ; $ columns = array_get ( $ this -> parameters , 'columns' ) ; return str_join ( ( $ this -> table -> isCreating ( ) ) ? '' : 'ADD' , Grammar :: getKey ( $ this -> name ) , Grammar :: compileName ( $ indexName ) , Grammar :: compileColumnList ( $ columns ) ) ; }
Compiles the command as an index.
Compiles the command as an index .