Skip to content

Commit e56bde2

Browse files
authored
Merge pull request #211 from wp-cli/regenerate-readme
2 parents 8ffca00 + baafc88 commit e56bde2

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)