Skip to content
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

Patch constraintnames #615

Merged
merged 5 commits into from
May 4, 2023
Merged

Conversation

thonhaus
Copy link
Contributor

@thonhaus thonhaus commented May 4, 2023

Fixes #614

When baking migration_diff/snapshot, the names defined in the constraints are used in the migration file now.

Sorry, but this is my first pull request ever. Please tell me if I'm doing anything wrong, so I can try to do it better ;)

@markstory markstory merged commit f30c575 into cakephp:3.x May 4, 2023
10 checks passed
@markstory
Copy link
Member

Thank you 🎉

ndm2 added a commit to ndm2/migrations that referenced this pull request Aug 14, 2023
Partially reverts cakephp#615, as it didn't account for other usages of the
`add-foreign-keys` element, where `constraints` is not indexed by
table name.
@LordSimal LordSimal added this to the 3.x (CakePHP 4) milestone Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Baking migration_snapshot ignores constraint names
3 participants