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

Create table using phql?

Hi,

I wonder if it is possible to use CREATE in phql queries? At present all I get is an exception with "Syntax error, unexpected token IDENTIFIER(CREATE)"

atm I have the following code:

```php
$sql = "CREATE TABLE IF NOT EXISTS ...."
$query = new \Phalcon\Mvc\Model\Query($sql, $this->getDI());

$query->execute();


So are create queries not possible or am I doing something wrong?

It would still be good to know if it can be done with phql, but I've decided to use PDO via db service.