Automattic\WooCommerce\Database\Migrations

MetaToCustomTableMigrator::get_destination_table_primary_id_schema()privateWC 1.0

Generate schema for primary ID column of destination table.

Method of the class: MetaToCustomTableMigrator{}

No Hooks.

Return

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() code WC 8.6.1

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'],
		),
	);
}