Automattic\WooCommerce\Internal\Utilities
DatabaseUtil::drop_fts_index_order_address_table
Helper method to drop the fulltext index on order address table.
Method of the class: DatabaseUtil{}
No Hooks.
Returns
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() DatabaseUtil::drop fts index order address table code WC 10.5.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;" );
}