Use seperate db version to better track changes

This commit is contained in:
vedanshujain 2020-06-04 22:38:13 +05:30
parent 4fce106f14
commit e0de059f23
2 changed files with 10 additions and 1 deletions

View File

@ -335,7 +335,7 @@ class WC_Install {
if ( $modify_notice ) {
WC_Admin_Notices::remove_notice( 'base_tables_missing' );
}
update_option( 'woocommerce_schema_version', WC()->version );
update_option( 'woocommerce_schema_version', WC()->db_version );
delete_option( 'woocommerce_schema_missing_tables' );
}
return $missing_tables;

View File

@ -22,6 +22,15 @@ final class WooCommerce {
*/
public $version = '4.3.0';
/**
* WooCommerce Schema version.
*
* @since 4.3 started with version string 430.
*
* @var string
*/
public $db_version = '430';
/**
* The single instance of the class.
*