You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/search-replace.feature
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1582,8 +1582,12 @@ Feature: Do global search/replace
1582
1582
And I run `wp db query "INSERT INTO wp_readonly_test (data) VALUES ('old-value');"`
1583
1583
And I run `wp db query "CREATE TRIGGER prevent_update BEFORE UPDATE ON wp_readonly_test FOR EACH ROW SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Table is read-only';"`
1584
1584
1585
-
When I try `wp search-replace old-value new-value wp_readonly_test --all-tables-with-prefix`
1585
+
When I try `wp search-replace old-value new-value wp_readonly_test`
1586
1586
Then STDERR should contain:
1587
1587
"""
1588
1588
Error updating column 'data' in table 'wp_readonly_test'
0 commit comments