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
dropped uniqueness constraint with explicit primary keys #329
Comments
The marshalling errors seems to be an independent problem and also occurs with postgres. I have created another issue: #342 |
#342 is fixed now, so this should just be an issue of a missing uniqueness constraint. |
Any progress on getting uniqueness constraints to coexist with primary keys on |
Tagging this one as newcomer. It should be relatively straightforward to look at the migration code in |
@parsonsmatt Can I take this up? |
@SanchayanMaity Sure, I have assigned this to you. |
@SanchayanMaity Go for it 😄 Let me know if you have any questions. @kderme I don't know. A good first step is for @SanchayanMaity to verify whether this is still happening, possibly by writing a test. |
@SanchayanMaity #930 So it looks like @kderme did implement the fix for this and it was released. However, we don't appear to have any tests for it. If you'd like to write a test for it, that'd be great! If not, that's cool too 😄 I am going to close this issue out. You can continue to use this to track the test, or we can create a new one. I'll let you decide. |
Given the schema
persistent creates the table as
omitting the
that is added if the explicit primary key directive is dropped.
However, the UniqueBar data type is still created, but trying to query on it results in an error:
ghci output:
The text was updated successfully, but these errors were encountered: