Mark Story
Mark Story
Thanks for opening this issue. How could I reproduce this problem? > have existing table with data and constraints set What does the table schema look like? Does `some_table` have...
Thanks for the more detailed steps. I'll have some time in a few days to look into this.
I was able to reproduce the error you're seeing, but I'm not sure that another `foreign_keys = OFF` will help here. With the following migrations ```php
> As the newly created table would not have any (previously existing) indexes and foreign constraints. Yes, the newly created table is lacking constraints. Constraints are currently not part of...
I think I've tracked this down to how transactions are being managed. The existing logic in migrations will use `PRAGMA foreign_keys = OFF` correctly as was done in phinx. What...
@kolorafa I opened #745 to add a hook method to migrations that allow you to escape the wrapping transaction if you need (which you now do for sqlite alters). I...
Having a custom migration manager that skips migrations without running them could cause issues elsewhere in the plugin as there are some assumptions around migrations being applied in the order...
> In answer to your question why we would only want to run certain migrations if a feature flag is enabled - this is because some of our migrations add...
Cool. Let me know how it goes using `shouldExecute()`. It is existing behavior, and should work today.
`shouldExecute` was added to phinx in cakephp/phinx@da9474e9a63937a59f2c8c0f0b3d8ce065d381b6 which was first part of 0.13.0