Merge pull request #23666 from woocommerce/update/wc-update-cli-db-version
WC Update CLI DB Version
This commit is contained in:
commit
64a76ea0fa
|
@ -49,6 +49,8 @@ class WC_CLI_Update_Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( empty( $callbacks_to_run ) ) {
|
if ( empty( $callbacks_to_run ) ) {
|
||||||
|
// Ensure DB version is set to the current WC version to match WP-Admin update routine.
|
||||||
|
WC_Install::update_db_version();
|
||||||
/* translators: %s Database version number */
|
/* translators: %s Database version number */
|
||||||
WP_CLI::success( sprintf( __( 'No updates required. Database version is %s', 'woocommerce' ), get_option( 'woocommerce_db_version' ) ) );
|
WP_CLI::success( sprintf( __( 'No updates required. Database version is %s', 'woocommerce' ), get_option( 'woocommerce_db_version' ) ) );
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue