woocommerce / woocommerce-product-tables-feature-plugin

Implements new data-stores and moves product data into custom tables, with a new, normalised data structure.
GNU General Public License v3.0
193 stars 32 forks source link

Drop tables only if they exist #126

Closed rodrigoprimo closed 5 years ago

rodrigoprimo commented 5 years ago

This commit adds an IF EXISTS check to the MySQL query that is executed to drop all the tables installed by this plugin when WC_Product_Tables_Cli::recreate_tables() is called. Doing this to prevent an unknown table MySQL error in case one of the tables don't exist.

Refs #125