ensure we’re only running checks for `wc_reserved_stock` table when necessary (https://github.com/woocommerce/woocommerce-blocks/pull/2895)

This commit is contained in:
Darren Ethier 2020-07-21 16:27:58 -04:00 committed by GitHub
parent 21b7637ef5
commit aef46f57e8
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class Installer {
$schema_version = 260;
$db_schema_version = (int) get_option( 'wc_blocks_db_schema_version', 0 );
if ( $db_schema_version > $schema_version ) {
if ( $db_schema_version >= $schema_version && 0 !== $db_schema_version ) {
return;
}