src/Database/QueryBuilder/Commands/Alter.php
/**
	 * Compiles the query into a string.
	 *
	 * @return string
	 */
Compiles the query into a string.
@return string
Compiles the query into a string . @return string
public function compile() {
		$statements = $this->statements;
		foreach ($this->options as $option => $value) {
			$statements[] = $option . ' = ' . $value;
		}
		return Str::join(
			'ALTER TABLE',
			StringBuilder::formatTableName($this->builder->getPrefix() . $this->table),
			implode(', ', $statements)
		) . ';';
	}
public function compile ( ) { $ statements = $ this -> statements ; foreach ( $ this -> options as $ option => $ value ) { $ statements [ ] = $ option . ' = ' . $ value ; } return Str :: join ( 'ALTER TABLE' , StringBuilder :: formatTableName ( $ this -> builder -> getPrefix ( ) . $ this -> table ) , implode ( ', ' , $ statements ) ) . ';' ; }
Compiles the query into a string.
Compiles the query into a string .