Automattic\WooCommerce\DataBase\Migrations\CustomOrderTable

CLIRunner::migrate()publicWC 1.0

Copy order data into the postmeta table.

Note that this could dramatically increase the size of your postmeta table, but is recommended if you wish to stop using the custom orders table plugin.

OPTIONS

[--batch-size=<batch-size>]
The number of orders to process in each batch. Passing a value of 0 will disable batching.
--- default: 500
---

EXAMPLES

# Copy all order data into the post meta table, 500 posts at a time.
wp wc cot backfill --batch-size=500

Метод класса: CLIRunner{}

No Hooks.

Return

null. Nothing.

Usage

$CLIRunner = new CLIRunner();
$CLIRunner->migrate( $args, $assoc_args );
$args(array)
Positional arguments passed to the command.
Default: array()
$assoc_args(array)
Associative arguments (options) passed to the command.
Default: array()

Code of CLIRunner::migrate() WC 7.1.0

public function migrate( $args = array(), $assoc_args = array() ) {
	$this->log_production_warning();
	WP_CLI::log( __( 'Migrate command is deprecated. Please use `sync` instead.', 'woocommerce' ) );
}