Use seperate db version to better track changes
This commit is contained in:
parent
4fce106f14
commit
e0de059f23
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue