Skip to content

Commit 2f0523f

Browse files
Copilotswissspidy
andauthored
Docs: Remove --add-drop-table from wp db export OPTIONS; update example (#324)
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 7e19f23 commit 2f0523f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/DB_Command.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -664,16 +664,13 @@ public function query( $args, $assoc_args ) {
664664
* [--porcelain]
665665
* : Output filename for the exported database.
666666
*
667-
* [--add-drop-table]
668-
* : Include a `DROP TABLE IF EXISTS` statement before each `CREATE TABLE` statement.
669-
*
670667
* [--defaults]
671668
* : Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
672669
*
673670
* ## EXAMPLES
674671
*
675-
* # Export database with drop query included
676-
* $ wp db export --add-drop-table
672+
* # Export database with `--skip-opt` and `--add-drop-table` mysqldump flags
673+
* $ wp db export --skip-opt --add-drop-table
677674
* Success: Exported to 'wordpress_dbase-db72bb5.sql'.
678675
*
679676
* # Export certain tables

0 commit comments

Comments
 (0)