src/Helper/TableManipulation.php
public static function createColumn($strTableName, $strColumnName, $strType, $blnAllowSystemCol = false)
    {
        self::checkColumnDoesNotExist($strTableName, $strColumnName, $blnAllowSystemCol);
        self::getDB()->execute(
            sprintf(
                self::STATEMENT_CREATE_COLUMN,
                $strTableName,
                $strColumnName,
                $strType
            )
        );
    }
public static function createColumn($strTableName, $strColumnName, $strType, $blnAllowSystemCol = false)
    {
        self::checkColumnDoesNotExist($strTableName, $strColumnName, $blnAllowSystemCol);
        self::getDB()->execute(
            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