yesodweb / yesodweb/persistent
Can't refer to the primary key in a Unique key
Open
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 486
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
Consider:
Group
name Text
User
Id String
group GroupId
UniqueUserGroup id group
This fails because the id column is unknown.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the schema from the issue and trace how primary-key references are handled when validating a unique key. Add a regression test for the shown Group/User schema, and consider the issue done when the schema accepts id in UniqueUserGroup without reporting the column as unknown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100