src/Helper/TableManipulator.php
public function createColumn($strTableName, $strColumnName, $strType, $blnAllowSystemCol = false)
    {
        $this->checkColumnDoesNotExist($strTableName, $strColumnName, $blnAllowSystemCol);
        $this->connection->query(
            sprintf(
                self::STATEMENT_CREATE_COLUMN,
                $strTableName,
                $strColumnName,
                $strType
            )
        );
    }
public function createColumn($strTableName, $strColumnName, $strType, $blnAllowSystemCol = false)
    {
        $this->checkColumnDoesNotExist($strTableName, $strColumnName, $blnAllowSystemCol);
        $this->connection->query(
            sprintf(
                self::STATEMENT_CREATE_COLUMN,
                $strTableName,
                $strColumnName,
                $strType
            )
        );
    }
public function createColumn ( $ strTableName , $ strColumnName , $ strType , $ blnAllowSystemCol = false ) { $ this -> checkColumnDoesNotExist ( $ strTableName , $ strColumnName , $ blnAllowSystemCol ) ; $ this -> connection -> query ( sprintf ( self :: STATEMENT_CREATE_COLUMN , $ strTableName , $ strColumnName , $ strType ) ) ; }
Add a column to a table.

Throws Exception if the table does not exist, the column name is invalid or the column already exists.

@param string  $strTableName      The name of the table to add the column to.

@param string  $strColumnName     The name of the new column.

@param string  $strType           The SQL type notation of the new column.

@param boolean $blnAllowSystemCol If this is set to true, no system column name checking will be applied.

@return void
Add a column to a table .