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

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 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: http://docs.phalcon.io/en/latest/reference/db.html#creating-altering-dropping-tables