Automattic\WooCommerce\Database\Migrations
MetaToCustomTableMigrator::get_destination_table_primary_id_schema
Generate schema for primary ID column of destination table.
Method of the class: MetaToCustomTableMigrator{}
No Hooks.
Returns
Array[]. Schema for primary ID column.
Usage
// private - for code of main (parent) class only $result = $this->get_destination_table_primary_id_schema(): array;
MetaToCustomTableMigrator::get_destination_table_primary_id_schema() MetaToCustomTableMigrator::get destination table primary id schema code WC 10.5.0
private function get_destination_table_primary_id_schema(): array {
return array(
'destination_primary_key' => array(
'destination' => $this->schema_config['destination']['primary_key'],
'type' => $this->schema_config['destination']['primary_key_type'],
),
);
}