Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ multisite, this will just be the tables for the current site unless
Search/replace intelligently handles PHP serialized data, and does not
change primary key values.

Tables without a primary key are skipped. To check whether a table has a
primary key, run `wp db query 'DESCRIBE <table>'` and look for 'PRI' in
the Key column.

**OPTIONS**

[<old>]
Expand Down
4 changes: 4 additions & 0 deletions src/Search_Replace_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ class Search_Replace_Command extends WP_CLI_Command {
* Search/replace intelligently handles PHP serialized data, and does not
* change primary key values.
*
* Tables without a primary key are skipped. To check whether a table has a
* primary key, run `wp db query 'DESCRIBE <table>'` and look for 'PRI' in
* the Key column.
*
* ## OPTIONS
*
* [<old>]
Expand Down
Loading