-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add force-autoid config. #668
base: 4.x
Are you sure you want to change the base?
Conversation
Something is really wrong here |
I don't have time currently to get into the migrations stuff again, but you're talking about snapshots, and there is no change in the snapshot template, only in the diff template, which doesn't even receive the option, as it's only been added to the snapshot command. |
Thx, that explains it, I will recheck tomorrow |
Isn't this the better option for end users? Instead of having to learn more flags to get the correct results, they can just use the default behavior which doesn't retain state between tables. That seems like a good improvement with less complexity exposed. |
Should we continue with this PR? |
Would need a different strategy I assume |
With the
we introduced some issues around baking a fresh snapshot.
The autoid gets cancelled with the slightest issue for ALL tables, making it super hard to clean that up.
I would like to propose a force-autoid config that allows to overwrite the "detected" one for those that want/need it.
I didnt quite figure out the proper twig syntax
Apprently this doesnt do it:
Any ideas?
Even setting it to
doesnt work, is there some weird extra cache involved?
Alternatively, we could see if hasAutoIdIncompatiblePrimaryKey() could be applied per table, instead of per file.
Refs cakephp/bake#962