Skip to content

Commit d41ee74

Browse files
danielbachhubermarksabbath
authored andcommitted
Regenerate README for new option
1 parent 6f2557b commit d41ee74

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contr
1010
## Using
1111

1212
~~~
13-
wp search-replace <old> <new> [<table>...] [--dry-run] [--network] [--all-tables-with-prefix] [--all-tables] [--export[=<file>]] [--export_insert_size=<rows>] [--skip-columns=<columns>] [--include-columns=<columns>] [--precise] [--recurse-objects] [--verbose] [--regex] [--regex-flags=<regex-flags>] [--regex-delimiter=<regex-delimiter>] [--format=<format>] [--report] [--report-changed-only] [--log[=<file>]] [--before_context=<num>] [--after_context=<num>]
13+
wp search-replace <old> <new> [<table>...] [--dry-run] [--network] [--all-tables-with-prefix] [--all-tables] [--export[=<file>]] [--export_insert_size=<rows>] [--skip-tables=<tables>] [--skip-columns=<columns>] [--include-columns=<columns>] [--precise] [--recurse-objects] [--verbose] [--regex] [--regex-flags=<regex-flags>] [--regex-delimiter=<regex-delimiter>] [--format=<format>] [--report] [--report-changed-only] [--log[=<file>]] [--before_context=<num>] [--after_context=<num>]
1414
~~~
1515

1616
Searches through all rows in a selection of tables and replaces
@@ -61,6 +61,10 @@ change primary key values.
6161
You might want to change this depending on your database configuration
6262
(e.g. if you need to do fewer queries). Default: 50
6363

64+
[--skip-tables=<tables>]
65+
Do not perform the replacement on specific tables. Use commas to
66+
specify multiple tables.
67+
6468
[--skip-columns=<columns>]
6569
Do not perform the replacement on specific columns. Use commas to
6670
specify multiple columns.
@@ -135,9 +139,9 @@ change primary key values.
135139
# Bash script: Search/replace production to development url (multisite compatible)
136140
#!/bin/bash
137141
if $(wp --url=http://example.com core is-installed --network); then
138-
wp search-replace --url=http://example.com 'http://example.com' 'http://example.dev' --recurse-objects --network --skip-columns=guid
142+
wp search-replace --url=http://example.com 'http://example.com' 'http://example.dev' --recurse-objects --network --skip-columns=guid --skip-tables=wp_users
139143
else
140-
wp search-replace 'http://example.com' 'http://example.dev' --recurse-objects --skip-columns=guid
144+
wp search-replace 'http://example.com' 'http://example.dev' --recurse-objects --skip-columns=guid --skip-tables=wp_users
141145
fi
142146

143147
## Installing

0 commit comments

Comments
 (0)