migrations icon indicating copy to clipboard operation
migrations copied to clipboard

Missing ROW_FORMAT option

Open wurst-hans opened this issue 3 years ago • 1 comments

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)?

wurst-hans avatar Oct 19 '21 19:10 wurst-hans

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.

Jeckerson avatar Oct 20 '21 07:10 Jeckerson