OllieJones / index-wp-mysql-for-speed

A plugin to add useful indexes to your WordPress installation's MySQL database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add --dryrun to wp-cli

OllieJones opened this issue · comments

Make it so we can say

wp index-mysql enable --all --dryrun

(or disable or upgrade) and get an output of the DDL needed to change the indexes. Make that output so we can do

wp index-mysql enable --all --dryrun | wp db query

and run the DDL directly (meaning: make the --dryrun output valid sql with sql comments in headers).

Fixed for 1.4.5.