Automattic\WooCommerce\Database\Migrations
MetaToCustomTableMigrator::get_core_column_mapping()
Specify column config from the source table.
Method of the class: MetaToCustomTableMigrator{}
No Hooks.
Return
Array
. Config, must be of the form: array( '$source_column_name_1' => array( // $source_column_name_1 is column name in source table, or a select statement.
'type' => 'type of value, could be string/int/date/float.', 'destination' => 'name of the column in column name where this data should be inserted in.',
), '$source_column_name_2' => array( ...... ), .... ).
Usage
// protected - for code of main (parent) or child class $result = $this->get_core_column_mapping(): array;
MetaToCustomTableMigrator::get_core_column_mapping() MetaToCustomTableMigrator::get core column mapping code WC 9.7.1
abstract protected function get_core_column_mapping(): array;