Skip to content

Commit

Permalink
Added --precise in wp search-replace in order to have more accurate r…
Browse files Browse the repository at this point in the history
…eplacements in case of serialized data
  • Loading branch information
omartanti authored and valentinocossar committed Dec 20, 2022
1 parent 24a23b9 commit 7b9e818
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

- name: Search for {{ url_from }} and replace with {{ url_to }} on development
delegate_to: development_host
command: wp search-replace '//{{ url_from }}' '//{{ url_to }}' --allow-root --all-tables
command: wp search-replace '//{{ url_from }}' '//{{ url_to }}' --allow-root --all-tables --precise
args:
chdir: "{{ project_web_dir }}"
tags: ['search-replace']
Expand Down
2 changes: 1 addition & 1 deletion database-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
warn: false

- name: Search for {{ url_from }} and replace with {{ url_to }} on development
command: wp search-replace '//{{ url_from }}' '//{{ url_to }}' --allow-root --all-tables
command: wp search-replace '//{{ url_from }}' '//{{ url_to }}' --allow-root --all-tables --precise
args:
chdir: "{{ project_web_dir }}"
tags: ['search-replace']
Expand Down

0 comments on commit 7b9e818

Please sign in to comment.