-
Notifications
You must be signed in to change notification settings - Fork 292
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
persistent-postgresql getColumn throws an error when a column has more than one foreign key constraint #1009
Comments
Adding to what @jkeuhlen mentioned above, this issue is also present in |
3 tasks
MaxGabriel
pushed a commit
that referenced
this issue
Jan 11, 2020
* [postgres] Fix multiple foreign keys on a single column This PR addresses issue #1009 for the PostgreSQL backend. In order to support multiple foreign keys on a single column, we now pass the reference name to getColumn, and use it in the where clause when querying foreign keys for the column. Adds failing tests for this, and gives a better error message if someone runs into the error.
Oh wait, this is still open for MySQL |
3 tasks
This was fixed by #1025 for MySQL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As discussed on #979, there is currently a bug in
persistent-postgresql
that causes migrations to fail when there is more than one constraint on a single column.This is an issue when you have e.g. a foreign key to a field and a compound foreign key with that same field included as shown in #979 (comment).
I've already written a failing test on another branch, and @robbassi has an incoming PR to fix this issue, so this is just for documentation purposes.
The text was updated successfully, but these errors were encountered: