File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,8 +74,10 @@ change primary key values.
7474 specify multiple columns.
7575
7676 [--precise]
77- Force the use of PHP (instead of SQL) which is more thorough,
78- but slower.
77+ Force the use of PHP (instead of SQL) for all columns. By default, the command
78+ uses fast SQL queries, but automatically switches to PHP for columns containing
79+ serialized data. Use this flag to ensure PHP processes all columns, which is
80+ slower but handles complex serialized data structures more reliably.
7981
8082 [--recurse-objects]
8183 Enable recursing into objects to replace strings. Defaults to true;
@@ -139,6 +141,9 @@ change primary key values.
139141 # Search/replace to a SQL file without transforming the database
140142 $ wp search-replace foo bar --export=database.sql
141143
144+ # Use precise mode for complex serialized data
145+ $ wp search-replace 'oldurl.com' 'newurl.com' --precise
146+
142147 # Bash script: Search/replace production to development url (multisite compatible)
143148 #!/bin/bash
144149 if $(wp --url=http://example.com core is-installed --network); then
You can’t perform that action at this time.
0 commit comments