yii\db\QueryBuilder::addCommentOnColumn PHP Method

addCommentOnColumn() public method

Builds a SQL command for adding comment to column
Since: 2.0.8
public addCommentOnColumn ( string $table, string $column, string $comment ) : string
$table string the table whose column is to be commented. The table name will be properly quoted by the method.
$column string the name of the column to be commented. The column name will be properly quoted by the method.
$comment string the text of the comment to be added. The comment will be properly quoted by the method.
return string the SQL statement for adding comment on column
    public function addCommentOnColumn($table, $column, $comment)
    {
        return 'COMMENT ON COLUMN ' . $this->db->quoteTableName($table) . '.' . $this->db->quoteColumnName($column) . ' IS ' . $this->db->quoteValue($comment);
    }