Make migration more strict by removing IGNORE.

This commit is contained in:
Vedanshu Jain 2023-04-06 20:48:11 +05:30
parent 33352895bc
commit 7f00d211d1
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ abstract class MetaToCustomTableMigrator extends TableMigrator {
list( $value_sql, $column_sql ) = $this->generate_column_clauses( array_merge( $this->core_column_mapping, $this->meta_column_mapping ), $batch );
return "INSERT IGNORE INTO $table (`$column_sql`) VALUES $value_sql;"; // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, -- $insert_query is hardcoded, $value_sql is already escaped.
return "INSERT INTO $table (`$column_sql`) VALUES $value_sql;"; // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, -- $insert_query is hardcoded, $value_sql is already escaped.
}
/**