yii\db\QueryBuilder::addCommentOnTable PHP Метод

addCommentOnTable() публичный Метод

Builds a SQL command for adding comment to table
С версии: 2.0.8
public addCommentOnTable ( string $table, string $comment ) : string
$table string the table whose column is to be commented. The table 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.
Результат string the SQL statement for adding comment on table
    public function addCommentOnTable($table, $comment)
    {
        return 'COMMENT ON TABLE ' . $this->db->quoteTableName($table) . ' IS ' . $this->db->quoteValue($comment);
    }