Skip to content

Commit

Permalink
Merge pull request #187 from wp-cli/fix/production-multisite-database
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Jul 24, 2023
2 parents 4297add + 9dd7f8f commit c6c6501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ change primary key values.
$ wp search-replace '\[foo id="([0-9]+)"' '[bar id="\1"' --regex --regex-flags='i'

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

# Search/replace to a SQL file without transforming the database
$ wp search-replace foo bar --export=database.sql
Expand Down
2 changes: 1 addition & 1 deletion src/Search_Replace_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class Search_Replace_Command extends WP_CLI_Command {
* $ wp search-replace '\[foo id="([0-9]+)"' '[bar id="\1"' --regex --regex-flags='i'
*
* # Turn your production multisite database into a local dev database
* $ wp search-replace --url=example.com example.com example.test 'wp_*options' wp_blogs
* $ wp search-replace --url=example.com example.com example.test 'wp_*options' wp_blogs wp_site --network
*
* # Search/replace to a SQL file without transforming the database
* $ wp search-replace foo bar --export=database.sql
Expand Down

0 comments on commit c6c6501

Please sign in to comment.