Upgrading from 3.0.8 to 3.1 fails , "Foreign key constraint is incorrectly formed

You can look at : 3.1.0-beta - Phinx Error Migration

i got a similar error (linux) with the phinx migration script. I use the solution in this post, but i got another problem. Hope this will work fine for you.