phalcon / migrations

Generate or migrate database changes via migrations.
https://docs.phalcon.io/latest/en/db-migrations
BSD 3-Clause "New" or "Revised" License
28 stars 23 forks source link

Missing ROW_FORMAT option #125

Open wurst-hans opened 2 years ago

wurst-hans commented 2 years ago

I've overseen, that Phalcon migrations do not seem to support ROW_FORMAT option on creating tables. How can this be done (i.e. how to modify migration classes manually to change that option on table)?

Jeckerson commented 2 years ago

For now: you can write whatever queries inside up() and down() methods. Example:

public function up()
{
    $this->getConnection()->query('YOUR CUSTOM QUERY HERE');
}

In cases when you want to use only custom queries or even queries with PHP logic, do not use morph() method.