Automattic\WooCommerce\Internal\Utilities

DatabaseUtil::drop_fts_index_order_address_table()publicWC 9.4.0

Helper method to drop the fulltext index on order address table.

Method of the class: DatabaseUtil{}

No Hooks.

Return

null. Nothing (null).

Usage

$DatabaseUtil = new DatabaseUtil();
$DatabaseUtil->drop_fts_index_order_address_table(): void;

Changelog

Since 9.4.0 Introduced.

DatabaseUtil::drop_fts_index_order_address_table() code WC 9.6.0

public function drop_fts_index_order_address_table(): void {
	global $wpdb;
	$address_table = $wpdb->prefix . 'wc_order_addresses';
	// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- $address_table is hardcoded.
	$wpdb->query( "ALTER TABLE $address_table DROP INDEX order_addresses_fts;" );
}