Skip to content

Commit c6c6501

Browse files
authored
Merge pull request #187 from wp-cli/fix/production-multisite-database
2 parents 4297add + 9dd7f8f commit c6c6501

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ change primary key values.
134134
$ wp search-replace '\[foo id="([0-9]+)"' '[bar id="\1"' --regex --regex-flags='i'
135135

136136
# Turn your production multisite database into a local dev database
137-
$ wp search-replace --url=example.com example.com example.test 'wp_*options' wp_blogs
137+
$ wp search-replace --url=example.com example.com example.test 'wp_*options' wp_blogs wp_site --network
138138

139139
# Search/replace to a SQL file without transforming the database
140140
$ wp search-replace foo bar --export=database.sql

src/Search_Replace_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class Search_Replace_Command extends WP_CLI_Command {
156156
* $ wp search-replace '\[foo id="([0-9]+)"' '[bar id="\1"' --regex --regex-flags='i'
157157
*
158158
* # Turn your production multisite database into a local dev database
159-
* $ wp search-replace --url=example.com example.com example.test 'wp_*options' wp_blogs
159+
* $ wp search-replace --url=example.com example.com example.test 'wp_*options' wp_blogs wp_site --network
160160
*
161161
* # Search/replace to a SQL file without transforming the database
162162
* $ wp search-replace foo bar --export=database.sql

0 commit comments

Comments
 (0)