{"table_name":"errors","full_table_name":"wp_errors","description":"Stores errors data created by this plugin.","detection_method":"static","confidence":"high","create_sql":"CREATE TABLE errors (it only logs them via // $wpdb), so a server that rejects the schema leaves no table // behind. Don't record the schema version for a table that // doesn't exist. self::$last_install_error = $error; return false; } self::$last_install_error = ''; // On a v1 → v2 upgrade, pre-existing rows have post_type='' (dbDelta's // DEFAULT fills new columns). A per-CPT count query would miss them, // so TRUNCATE and rely on the admin dashboard / WP-CLI rebuild to // reindex with correct post_type values. v2.2 has not shipped yet so // no production data is lost. if ( $needs_truncate ) { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.DirectDatabaseQuery.SchemaChange -- deliberate upgrade-time schema reset. $wpdb->query( $wpdb->prepare( 'TRUNCATE TABLE %i', $table ) );","columns":[{"name":"it","type":"only","nullable":true,"primary_key":false}],"plugin":{"slug":"designsetgo","name":"DesignSetGo","active_installs":7000,"version":"2.11.0","wp_org_url":"https://wordpress.org/plugins/designsetgo/"}}