Automattic\WooCommerce\Database\Migrations
MetaToCustomTableMigrator::verify_data()
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() MetaToCustomTableMigrator::verify data WC 7.5.1
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; }