Cannot change primary key to multi-column one with SQLite
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 4.5k
- Forks
- 884
- PR merge metrics
- No merged PRs in 30d
Description
When using the SQLite adapter, tables can be created with a multi-column primary key.
Trying to change the primary key to a multi-column one afterwards fails (whether it previously was a single-column or multi-column one) with InvalidArgumentException "Invalid value for primary key: [...]".
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 reproducing the failure in the SQLite adapter when changing either a single-column or multi-column primary key to a multi-column key. Trace the validation that raises InvalidArgumentException for the primary-key value. Done means both primary-key change cases work for SQLite without that exception, with coverage for the reported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, sqlite
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100