src/Database/QueryBuilder/Commands/Alter.php
/**
	 * Modifies a column and optionally changes its position.
	 *
	 * @param ColumnDefinition $column
	 * @param string|null $after
	 * @return $this
	 */
Modifies a column and optionally changes its position.
@param ColumnDefinition $column
@param string|null $after
@return $this
Modifies a column and optionally changes its position . @param ColumnDefinition $column @param string|null $after @return $this
public function modifyColumn(ColumnDefinition $column, $after = null) {
		$compiled = array(
			'MODIFY',
			$column->compile()
		);
		if (!is_null($after)) {
			$compiled[] = ($after == 'FIRST') ? 'FIRST' : 'AFTER ' . StringBuilder::formatColumnName($after);
		}
		$this->statements[] = Str::join($compiled);
		return $this;
	}
public function modifyColumn ( ColumnDefinition $ column , $ after = null ) { $ compiled = array ( 'MODIFY' , $ column -> compile ( ) ) ; if ( ! is_null ( $ after ) ) { $ compiled [ ] = ( $ after == 'FIRST' ) ? 'FIRST' : 'AFTER ' . StringBuilder :: formatColumnName ( $ after ) ; } $ this -> statements [ ] = Str :: join ( $ compiled ) ; return $ this ; }
Modifies a column and optionally changes its position.
Modifies a column and optionally changes its position .