Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

How create comments for column?

I undestand how create comments for column?

The documentation is no.

ALTER TABLE `test`
    ADD COLUMN `foo` TEXT NULL DEFAULT NULL COMMENT 'Here your comment';


10.1k

) I need a solution to phalcone.



30.0k
Accepted
answer

Hi,

it seems that it is not implemented: https://docs.phalconphp.com/en/latest/reference/db.html#creating-tables

(see options for creating a column)

But you can still do that with raw sql as suggested above : https://docs.phalconphp.com/en/latest/reference/phql.html#using-raw-sql