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

fix: incorrect composite UNIQUE constraints detection #8364

Merged
merged 4 commits into from Nov 14, 2021
Merged

Conversation

AlexMesser
Copy link
Collaborator

Description of change

See original issue for detailed description. This PR is based on #8157, but applies fix for all drivers and adds a test showing erroneous behavior.

Fixes #8158
Closes #8157

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • [N/A] Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

@AlexMesser AlexMesser merged commit 29cb891 into master Nov 14, 2021
@AlexMesser AlexMesser deleted the issue-8158 branch November 14, 2021 21:45
HeartPattern pushed a commit to HeartPattern/typeorm that referenced this pull request Nov 29, 2021
* added fix and test for typeorm#8158

* fixed for other drivers

* fixed column length for Oracle
HeartPattern pushed a commit to HeartPattern/typeorm that referenced this pull request Nov 29, 2021
* added fix and test for typeorm#8158

* fixed for other drivers

* fixed column length for Oracle
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.

Typeorm creates migration that creates already existing unique constraint
1 participant