Skip to content

Commit

Permalink
Use seperate db version to better track changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vedanshujain committed Jun 4, 2020
1 parent 4fce106 commit e0de059
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public static function verify_base_tables( $modify_notice = true, $execute = fal
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;
Expand Down
9 changes: 9 additions & 0 deletions includes/class-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit e0de059

Please sign in to comment.