exists() ) { $this->drop(); } } catch ( \Throwable $e ) { function_exists( 'error_log' ) && error_log( '[Kadence Blocks]: Unable to drop optimizer table during schema update: ' . $e->getMessage() ); return []; } return parent::update(); } /** * @inheritDoc */ protected function get_definition(): string { global $wpdb; $table_name = self::table_name(); $charset_collate = $wpdb->get_charset_collate(); return " CREATE TABLE `$table_name` ( path_hash CHAR(64) PRIMARY KEY COMMENT 'SHA-256 hash of the relative path of the URL used as a unique key for fast lookups', path TEXT NOT NULL COMMENT 'The relative path of the URL, stored for reference and debugging', analysis LONGTEXT NOT NULL COMMENT 'Serialized or JSON-encoded analysis data associated with the path' ) {$charset_collate}; "; } }