Need ability to get all foreign keys
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 4.5k
- Forks
- 884
- PR merge metrics
- No merged PRs in 30d
Description
Is there a way to get foreign keys from the table or adapter?
This method is currently protected and lives within the adapters and used to be public but it got removed by this PR which it is not clear to me why it got removed.
Is there architecturally a reason to keep this method protected, would you consider changing this behavior? Please let me know as I am happy in assisting with this feature request.
Thanks!
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 with src/Phinx/Db/Adapter/MysqlAdapter.php around line 813 and review the removal in pull request #1339. Compare the adapter interfaces and supported implementations to determine the appropriate public access point; the work is done when callers can retrieve a table's foreign keys through the supported API without violating the adapter design.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100