Use DB prefix when dropping tables
-
Please do not forget to use the local DB prefix in the commands to drop database tables.
Also, are you automatically dropping the tables when the plugin is deactivated?
'db.seasp_csp' for query DROP TABLE
seasp_csp; made by deactivate_plugins, do_action('deactivate_sea-sp-community-edition/Bluetriangle-free-csp.php'), WP_Hook->do_action, WP_Hook->apply_filters, Blue_Triangle_Automated_Free_CSP_deactivatePHP message: WordPress database error Unknown table 'db.seasp_directives' for query DROP TABLE
seasp_directives; made by deactivate_plugins, do_action('deactivate_sea-sp-community-edition/Bluetriangle-free-csp.php'), WP_Hook->do_action, WP_Hook->apply_filters,
If so, that is a VERY BAD idea. Drop tables when one uninstalls, but NOT when one activates.
- The topic ‘Use DB prefix when dropping tables’ is closed to new replies.