Giving multiple same arguments to mysqldump (via wp db export) only forwards the latest
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start at the wp db export command and inspect how repeated --ignore-table-data arguments are parsed before being passed to mysqldump. Reproduce the documented command with two values, then verify that both table arguments are forwarded and that existing export behavior remains intact.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Report
- Yes, I reviewed the contribution guidelines.
- Yes, more specifically, I reviewed the guidelines on how to write clear bug reports.
Using the following example:
wp db export --ignore-table-data=database.wp_fc_campaign_emails --ignore-table-data=database.wp_fsmpt_email_logs --ignore-table-data=database.wp_fc_campaign_url_metrics export.sql
Only the value of --ignore-table-data=database.wp_fc_campaign_url_metrics is forwarded to mysqldump.
From the docs:
To specify more than one table to ignore, use the directive multiple times, once for each table. Each table must be specified with both database and table names. See also --no-data.
I expect the arguments are parsed, and duplicate keys are just overridden by each other, which is not expected in this scenario.
- Ngôn ngữ chính
- PHP
- Star
- 76
- Fork
- 73
- Merge trung bình
- 9 giờ 31 phút
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wp-cli/db-command
-
command:db-size scope:documentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
wp-cli/db-command#348 · 1 bình luận ·
-
bug command:db-query
wp-cli/db-command#319 · 5 bình luận · 1 reaction · 2 người được giao ·
-
command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · 5 bình luận · 1 reaction · 2 người được giao ·
-
command:db-export command:db-import scope:distribution state:unconfirmed
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
wp-cli/db-command#327 · 8 bình luận · 2 reaction ·
-
command:db command:db-search
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
wp-cli/db-command#156 · 1 bình luận · 20 reaction ·
Tất cả issue của wp-cli/db-command
Issue tương tự
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Перевод устарел
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
-
[6.x]: "Cannot use object of type stdClass as array" loading Users index (regression of #19182) Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100