Skip to content

Commit 7b9e818

Browse files
omartantivalentinocossar
authored andcommitted
Added --precise in wp search-replace in order to have more accurate replacements in case of serialized data
1 parent 24a23b9 commit 7b9e818

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

database-pull.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
- name: Search for {{ url_from }} and replace with {{ url_to }} on development
8080
delegate_to: development_host
81-
command: wp search-replace '//{{ url_from }}' '//{{ url_to }}' --allow-root --all-tables
81+
command: wp search-replace '//{{ url_from }}' '//{{ url_to }}' --allow-root --all-tables --precise
8282
args:
8383
chdir: "{{ project_web_dir }}"
8484
tags: ['search-replace']

database-push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
warn: false
8888

8989
- name: Search for {{ url_from }} and replace with {{ url_to }} on development
90-
command: wp search-replace '//{{ url_from }}' '//{{ url_to }}' --allow-root --all-tables
90+
command: wp search-replace '//{{ url_from }}' '//{{ url_to }}' --allow-root --all-tables --precise
9191
args:
9292
chdir: "{{ project_web_dir }}"
9393
tags: ['search-replace']

0 commit comments

Comments
 (0)