Also try to update table structure when verifying DB

This commit is contained in:
vedanshujain 2020-05-27 00:07:13 +05:30
parent 9c5b72a572
commit c23300c7cb
1 changed files with 2 additions and 1 deletions

View File

@ -553,7 +553,8 @@ class WC_REST_System_Status_Tools_V2_Controller extends WC_REST_Controller {
$ran = false;
break;
}
$missing_tables = WC_Install::verify_base_tables();
// Try to manually create table again.
$missing_tables = WC_Install::verify_base_tables( true, true );
if ( 0 === count( $missing_tables ) ) {
$message = __( 'Database verified successfully.', 'woocommerce-rest-api' );
} else {