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{}

Хуков нет.

Возвращает

Массив. Array of failed IDs if any, along with columns/meta_key names.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->verify_data( $collected_data );
$collected_data(массив) (обязательный)
Collected data in array format, should be in same structure as returned from query in $this->build_verification_query.

Код MetaToCustomTableMigrator::verify_data() WC 6.8.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;
}