Merge pull request #23666 from woocommerce/update/wc-update-cli-db-version

WC Update CLI DB Version
This commit is contained in:
Gerhard Potgieter 2019-05-10 11:21:58 +02:00 committed by GitHub
commit 64a76ea0fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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;