SqlHandler::add_column PHP Method

add_column() protected static method

Add column to a specific table
protected static add_column ( $table_name, $new_column_name, $field_attributes )
    protected static function add_column($table_name, $new_column_name, $field_attributes)
    {
        $result = dbquery("ALTER TABLE " . $table_name . " ADD " . $new_column_name . " " . $field_attributes);
        // create the new one.
        if (!$result) {
            \defender::stop();
            addNotice("danger", "Unable to add column " . $new_column_name . " with attributes - " . $field_attributes);
        }
    }