We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Alter Table

hi

it's possible add a column in a table of the database with phql ???

how can i do it??



98.9k

PHQL doesn't support DDL instructions like alter or drop table for security reasons,

However, you can use the database connection to add fields:

https://docs.phalcon.io/en/latest/reference/db.html#altering-tables