wp_statements
StaticStores statements data created by this plugin.
CREATE TABLE Statement
CREATE TABLE statements (see * https://core.trac.wordpress.org/ticket/19207), producing "Duplicate * key name" warnings that pollute the error log on every migration tick. * We manage these specific composite indexes outside dbDelta so they * can be added once and stay quiet on subsequent runs. * * Safe to call on every migration: * - SHOW INDEX confirms the key is absent before issuing ALTER. * - $wpdb->suppress_errors() prevents wpdb from printing the harmless * duplicate-key warning if a concurrent request races us between the * SHOW INDEX check and the ALTER statement. * * @since 2.6.0 * @return void */ private function ensure_composite_indexes(): void { global $wpdb; $indexes = [ $this->automation_jobs_table => [ 'idx_status_next_run_created' => '(status, next_run, created_at)', ], $this->job_products_table => [ 'idx_status_processing_started' => '(status, processing_started_at)', ], $this->draft_content_table => [ 'idx_status_type_created' => '(status, content_type, created_at)', 'idx_job_status_created' => '(job_id, status, created_at)', ], $this->chatbot_messages_table => [ 'idx_record_type_created' => '(record_type, created_at)', ], ]; foreach ($indexes as $table => $table_indexes) { foreach ($table_indexes as $index_name => $columns) { $existing = $wpdb->get_var($wpdb->prepare( "SHOW INDEX FROM `{$table}` WHERE Key_name = %s", $index_name ));Safe to delete?
If you have uninstalled AI Product Tools – Bulk Product Content Generator & AI Toolkit for WooCommerce, this table is generally safe to remove. However, always back up your database first.
Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.
How to remove this table
DROP TABLE IF EXISTS `wp_statements`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from AI Product Tools – Bulk Product Content Generator & AI Toolkit for WooCommerce