Appends "ADD COLUMN" statement

@param string $column
@param string $type
@return \Krystal\Db\Sql\QueryBuilder
337357
public function addColumn($column, $type)
    {
        $this->append(sprintf(' ADD COLUMN %s %s', $this->quote($column), $type));
        return $this;
    }
6573
public static function alterColumn(
        $operation,
        $table,
        $column,
        $type = 'text',
        $signed = true,
        $allowNull = true,
        $default = null,
        $position = null,
        $comment = ''
    ) {
        $query = static::getQuery();

        $column = $query->quoteName((array) $column);

        return static::build(
            'ALTER TABLE',
            $query->quoteName($table),
            $operation,
            implode(' ', $column),
            $type ?: 'text',
            $signed ? null : 'UNSIGNED',
            $allowNull ? null : 'NOT NULL',
            $default !== false ? 'DEFAULT ' . static::getQuery()->validValue($default) : null,
            $comment ? 'COMMENT ' . $query->quote($comment) : null,
            static::handleColumnPosition($position)
        );
    }
775763
protected function addCol($col)
    {
        $key                    = $this->quoteName($col);
        $this->col_values[$key] = ":$col";
        $args                   = func_get_args();
        if (count($args) > 1) {
            $this->bindValue($col, $args[1]);
        }
        return $this;
    }
1279135
public function columns( $column )
    {
        if( is_array($column ) ) {
            $this->columns += $column;
        } elseif( func_num_args() > 1 ) {
            $column = func_get_args();
            $this->columns += $column;
        }
        return $this;
    }
130431
protected function addColumn($col, $type)
    {
        if (empty($col)) {
            return Yii::t('podium/flash', 'Installation aborted! Column name missing.');
        }
        if (empty($type)) {
            return Yii::t('podium/flash', 'Installation aborted! Column type missing.');
        }
        try {
            $this->db->createCommand()->addColumn($this->table, $col, $type)->execute();
            return $this->returnSuccess(Yii::t('podium/flash', 'Table column {name} has been added', ['name' => $col]));
        } catch (Exception $e) {
            return $this->returnError($e->getMessage(), __METHOD__,
                Yii::t('podium/flash', 'Error during table column {name} adding', ['name' => $col])
            );
        }
    }
399265
public function addColumn(Column $column)
    {
        $this->columns[] = $column;

        if ($column instanceof ColumnInterface) {
            $column->initialize($this);
        }

        return $this;
    }
849459
public final function addColumn(Column\ColumnAbstract $column)
    {
        //dodawanie Columnu (nazwa unikalna)
        return $this->_columns[$column->getName()] = $column->setGrid($this);
    }
402089
public function addColumn($columnName, $type = null, $options = [])
    {
        $column = new Column();
        $column->setName($columnName);
        $column->setType($type);
        $column->setOptions($options);

        $column->setTable($this);

        parent::addColumn($column);

        return $column;
    }
615685
public function incrementColumn($type, $increment = 1)
    {
        if ($type === 'new') {
            return $this->incrementColumnInNew($increment);
        }

        return $this->incrementColumnInOld($increment);
    }
972864
protected function addIndex($name, $type, $column)
    {
        if (isset($this->indexes[$name])) {
            $this->indexes[$name]['columns'][] = $column;
        }
        else {
            $this->indexes[$name] = [
                'name' => $name,
                'type' => $type,
                'columns' => [
                    $column
                ]
            ];
        }
    }
36470
public function addUniqueIndex( $type,$columns ) {
		$table = $this->safeTable($type,true);
		$name = 'UQ_'.$table.implode('__',$columns);
		$t = $this->getTable($type);
		if (isset($t['indexes'][$name])) return;
		$t['indexes'][$name] = array('name'=>$name);
		$this->putTable($t);
	}
152804
public function addColumn($name, $type, array $attributes = [])
    {
        if ($this->scope == 'alter') {
            $command = 'ADD COLUMN';
        } else {
            $command = null;
        }

        $this->sqls[] = $this->composeAddColumn(
            trim($name, '`'),
            compact('name', 'type', 'attributes', 'command')
        );

        return $this;
    }
650691
def addColumn(self, column):
        
        column.setSchema(self)
        self.__columns[column.name()] = column
84789
public function addColumn(FieldConfig $column)
    {
        if ($this->columns === null) {
            $this->setColumns([]);
        }
        $this->columns->push($column);
        return $this;
    }
1361340
public function addColumnContent($column, $postId)
    {
        if (isset($this->data[$column]) && $field = $this->data[$column]) {
            echo $field->outputColumnContent($postId);
        } else {
            return $column;
        }
    }
611855
public function orderBy(string $column, string $type = null)
    {
        if ($type) {
            $type = strtoupper($type);

            if (!in_array($type, ['ASC', 'DESC'])) {
                throw new SqlException('Wrong ORDER type for statement.');
            }
        }

        $this->addOrderBy($this->dialect()->quoteName($column), $type);

        return $this;
    }
1155480
public function addIndex($columnName, $type = Table::INDEX_REGULAR) {
        if (!array_key_exists($columnName, $this->getIndexes()) && !array_key_exists($columnName,
                        $this->newIndexes))
                $this->newIndexes[$columnName] = $type;
        return $this;
    }