Explain why certain tables can be skipped in search-replace#221
Merged
swissspidy merged 2 commits intomainfrom Mar 19, 2026
Merged
Explain why certain tables can be skipped in search-replace#221swissspidy merged 2 commits intomainfrom
swissspidy merged 2 commits intomainfrom
Conversation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Clarify why certain tables can be skipped in command
Explain why certain tables can be skipped in search-replace
Mar 19, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the wp search-replace command documentation to explain why some tables are skipped (missing primary key) and how users can diagnose this, improving UX for a common “skipped tables” confusion case.
Changes:
- Added a concise note to the
search-replacecommand description explaining that tables without a primary key are skipped. - Documented a quick diagnostic command (
wp db query 'DESCRIBE <table>') and what to look for (PRIin theKeycolumn). - Reflected the same note in the generated
README.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Search_Replace_Command.php | Adds primary-key skip explanation + diagnosis tip to the command docblock. |
| README.md | Mirrors the same explanation in generated package documentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tables without a primary key are silently skipped during
wp search-replace, leaving users with no indication of why or how to fix it.Changes
src/Search_Replace_Command.php: Added a paragraph to the command's docblock description noting that tables without a primary key are skipped, and how to diagnose the issue viawp db query 'DESCRIBE <table>'(look forPRIin the Key column).README.md: Reflected the same addition in the generated documentation.Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.