Automattic\WooCommerce\Database\Migrations

MetaToCustomTableMigrator::verify_data()protectedWC 1.0

Verify data from both source and destination tables and check if they were migrated properly.

Метод класса: MetaToCustomTableMigrator{}

No Hooks.

Return

Array. Array of failed IDs if any, along with columns/meta_key names.

Usage

// protected - for code of main (parent) or child class
$result = $this->verify_data( $collected_data );
$collected_data(array) (required)
Collected data in array format, should be in same structure as returned from query in $this->build_verification_query.

Code of MetaToCustomTableMigrator::verify_data() WC 7.1.0

protected function verify_data( $collected_data ) {
	$failed_ids = array();
	foreach ( $collected_data as $row ) {
		$failed_ids = $this->verify_entity_columns( $row, $failed_ids );
		$failed_ids = $this->verify_meta_columns( $row, $failed_ids );
	}

	return $failed_ids;
}