Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostToOrderOpTableMigrator::get_schema_config()
Get schema config for wp_posts and wc_order_operational_detail table.
Method of the class: PostToOrderOpTableMigrator{}
No Hooks.
Return
Array
. Config.
Usage
// protected - for code of main (parent) or child class $result = $this->get_schema_config(): array;
PostToOrderOpTableMigrator::get_schema_config() PostToOrderOpTableMigrator::get schema config code WC 9.7.1
protected function get_schema_config(): array { global $wpdb; return array( 'source' => array( 'entity' => array( 'table_name' => $wpdb->posts, 'meta_rel_column' => 'ID', 'destination_rel_column' => 'ID', 'primary_key' => 'ID', ), 'meta' => array( 'table_name' => $wpdb->postmeta, 'meta_id_column' => 'meta_id', 'meta_key_column' => 'meta_key', 'meta_value_column' => 'meta_value', 'entity_id_column' => 'post_id', ), ), 'destination' => array( 'table_name' => OrdersTableDataStore::get_operational_data_table_name(), 'source_rel_column' => 'order_id', 'primary_key' => 'id', 'primary_key_type' => 'int', ), ); }