Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostToOrderAddressTableMigrator::get_core_column_mapping()protectedWC 1.0

Get columns config.

Method of the class: PostToOrderAddressTableMigrator{}

No Hooks.

Return

\String[][]. Config.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_core_column_mapping(): array;

PostToOrderAddressTableMigrator::get_core_column_mapping() code WC 8.7.0

protected function get_core_column_mapping(): array {
	$type = $this->type;

	return array(
		'ID'   => array(
			'type'        => 'int',
			'destination' => 'order_id',
		),
		'type' => array(
			'type'          => 'string',
			'destination'   => 'address_type',
			'select_clause' => "'$type'",
		),
	);
}