We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to create table

Hi everyone! I want to create table with Pdo, but I don't know how to use the method Phalcon\Db\Adapter\Pdo\Postgresql::createTable. Is there an example or any other ways? Thanks very much.

edited Jun '15

Thank you! I tried the method createTable with postgresql, there is an error: Not implemented yet What can I do?

There is an example in the documentation: https://docs.phalcon.io/en/latest/reference/db.html#creating-altering-dropping-tables