migrations
migrations copied to clipboard
Migration not running on MySQL8
I created a migration to add a column to a table
bin/cake bake migration AddHistoryToUserCatalog history:text
When running the migration I get this error
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mydatabasename' in 'where clause'
Running the same on a mysql5.x database executes without any issues. Running CakePHP3.9 php7.2.24 MySql 8. Staying on mysql 5.x is not an option for me. Has anyone run into this issue? Is there is fix?
You will need phinx 0.12.x for mysql 8 support.
@frankhdz You can try to backport certain features to 0.11 (and CakePHP 3) if you need to.