Added an update task to increase the database version

This commit is contained in:
Christopher Allford 2020-01-14 13:39:47 -08:00
parent 1ac8eebac3
commit c34a5b6ffe
2 changed files with 8 additions and 0 deletions

View File

@ -138,6 +138,7 @@ class WC_Install {
'3.9.0' => array(
'wc_update_390_remove_maxmind_database',
'wc_update_390_change_geolocation_database_update_cron',
'wc_update_390_db_version',
),
);

View File

@ -2063,3 +2063,10 @@ function wc_update_390_change_geolocation_database_update_cron() {
wp_clear_scheduled_hook( 'woocommerce_geoip_updater' );
wp_schedule_event( time() + MINUTE_IN_SECONDS, 'fifteendays', 'woocommerce_geoip_updater' );
}
/**
* Update DB version.
*/
function wc_update_390_db_version() {
WC_Install::update_db_version( '3.9.0' );
}