src/Database/Migration/Blueprint.php
/**
	 * Compiles the blueprint as a CREATE TABLE operation.
	 *
	 * @return string
	 */
Compiles the blueprint as a CREATE TABLE operation.
@return string
Compiles the blueprint as a CREATE TABLE operation . @return string
private function compileCreateTable() {
		$query = array('CREATE TABLE', Grammar::compileName($this->schema->prefix($this->table)));
		$columns = array();
		foreach ($this->columns as $column) {
			$columns[] = (string)$column;
		}
		foreach ($this->commands as $command) {
			$columns[] = (string)$command;
		}
		$query[] = '(' . implode(', ', $columns) . ')';
		return str_join($query);
	}
private function compileCreateTable ( ) { $ query = array ( 'CREATE TABLE' , Grammar :: compileName ( $ this -> schema -> prefix ( $ this -> table ) ) ) ; $ columns = array ( ) ; foreach ( $ this -> columns as $ column ) { $ columns [ ] = ( string ) $ column ; } foreach ( $ this -> commands as $ command ) { $ columns [ ] = ( string ) $ command ; } $ query [ ] = '(' . implode ( ', ' , $ columns ) . ')' ; return str_join ( $ query ) ; }
Compiles the blueprint as a CREATE TABLE operation.
Compiles the blueprint as a CREATE TABLE operation .
// Build columns // Add indexes // Add columns and indexes to the table