Dont use `list` format for php compatibility.

This commit is contained in:
vedanshujain 2022-04-22 14:28:55 +05:30
parent fa77484d59
commit b060e1b1f0
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ abstract class MetaToMetaTableMigrator {
$already_migrated = $this->get_already_migrated_records( array_keys( $to_migrate['data'] ) ); $already_migrated = $this->get_already_migrated_records( array_keys( $to_migrate['data'] ) );
list( $to_insert, $to_update ) = $this->classify_update_insert_records( $to_migrate['data'], $already_migrated ); $data = $this->classify_update_insert_records( $to_migrate['data'], $already_migrated );
$to_insert = $data[0];
$to_update = $data[1];
if ( ! empty( $to_insert ) ) { if ( ! empty( $to_insert ) ) {
$insert_queries = $this->generate_insert_sql_for_batch( $to_insert ); $insert_queries = $this->generate_insert_sql_for_batch( $to_insert );