From f1e59698259400f2d4773dfabc188924eebeef7e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:45:42 +0000 Subject: [PATCH 1/2] Initial plan From 0239c6a20a0355cbbc30860c52d248e77b106cfb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:48:36 +0000 Subject: [PATCH 2/2] Docs: Remove --add-drop-table from export docblock OPTIONS and update example Agent-Logs-Url: https://github.com/wp-cli/db-command/sessions/4927b80f-46fa-482c-93fd-9fd1c6317e14 Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com> --- src/DB_Command.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/DB_Command.php b/src/DB_Command.php index 78cee981..03b578af 100644 --- a/src/DB_Command.php +++ b/src/DB_Command.php @@ -664,16 +664,13 @@ public function query( $args, $assoc_args ) { * [--porcelain] * : Output filename for the exported database. * - * [--add-drop-table] - * : Include a `DROP TABLE IF EXISTS` statement before each `CREATE TABLE` statement. - * * [--defaults] * : Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration. * * ## EXAMPLES * - * # Export database with drop query included - * $ wp db export --add-drop-table + * # Export database with `--skip-opt` and `--add-drop-table` mysqldump flags + * $ wp db export --skip-opt --add-drop-table * Success: Exported to 'wordpress_dbase-db72bb5.sql'. * * # Export certain tables