yesodweb / yesodweb/persistent
persistent-mysql tries to add foreign keys to TEXT/BLOB columns
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 486
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
MySQL doesn't support foreign keys on TEXT/BLOB columns. persistent-mysql will try to add a foreign key, which causes an error.
This necessitates skipping tests like the PrimaryTest for the mysql backend.
Best approach seems to be to not add references to TEXT/BLOB columns.
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
Start by reading persistent-test/PrimaryTest.hs around lines 39–41 and then inspect persistent-mysql’s foreign-key handling. Run the relevant MySQL tests to reproduce the schema error. Done means TEXT/BLOB columns no longer receive foreign-key references and the affected tests no longer need to be skipped.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, mysql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100