Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::check_orders_table_exists()publicWC 1.0

Does the custom orders tables exist in the database?

{} It's a method of the class: DataSynchronizer{}

No Hooks.

Return

true|false. True if the custom orders tables exist in the database.

Usage

$DataSynchronizer = new DataSynchronizer();
$DataSynchronizer->check_orders_table_exists(): bool;

Code of DataSynchronizer::check_orders_table_exists() WC 7.1.0

public function check_orders_table_exists(): bool {
	$missing_tables = $this->database_util->get_missing_tables( $this->data_store->get_database_schema() );

	return count( $missing_tables ) === 0;
}