Change db update version from 6.2 to 6.3.

Also rename the db update function to include the Woo version number.
This commit is contained in:
Nestor Soriano 2022-01-17 12:36:49 +01:00
parent 806c4f2ed3
commit dbb4605e8e
No known key found for this signature in database
GPG Key ID: 08110F3518C12CAD
2 changed files with 7 additions and 7 deletions

View File

@ -169,9 +169,9 @@ class WC_Install {
'wc_update_600_migrate_rate_limit_options',
'wc_update_600_db_version',
),
'6.2.0' => array(
'wc_create_product_attributes_lookup_table',
'wc_update_620_db_version',
'6.3.0' => array(
'wc_update_630_create_product_attributes_lookup_table',
'wc_update_630_db_version',
),
);

View File

@ -2344,7 +2344,7 @@ function wc_update_600_db_version() {
*
* @return false Always false, since the LookupDataStore class handles all the data filling process.
*/
function wc_create_product_attributes_lookup_table() {
function wc_update_630_create_product_attributes_lookup_table() {
$data_store = wc_get_container()->get( LookupDataStore::class );
if ( $data_store->check_lookup_table_exists() ) {
return false;
@ -2357,8 +2357,8 @@ function wc_create_product_attributes_lookup_table() {
/**
*
* Update DB version to 6.2.0.
* Update DB version to 6.3.0.
*/
function wc_update_620_db_version() {
WC_Install::update_db_version( '6.2.0' );
function wc_update_630_db_version() {
WC_Install::update_db_version( '6.3.0' );
}