From dd8a625e9074edb25fa2c2f51bf6ab4340304d3a Mon Sep 17 00:00:00 2001 From: Joshua T Flowers Date: Fri, 8 May 2020 22:35:06 +0300 Subject: [PATCH] Update wcadmin db version after db callback (https://github.com/woocommerce/woocommerce-admin/pull/4323) --- .../includes/wc-admin-update-functions.php | 7 +++++++ plugins/woocommerce-admin/src/Install.php | 1 + 2 files changed, 8 insertions(+) diff --git a/plugins/woocommerce-admin/includes/wc-admin-update-functions.php b/plugins/woocommerce-admin/includes/wc-admin-update-functions.php index 022a310f142..72250e7d7b7 100644 --- a/plugins/woocommerce-admin/includes/wc-admin-update-functions.php +++ b/plugins/woocommerce-admin/includes/wc-admin-update-functions.php @@ -84,3 +84,10 @@ function wc_admin_update_0251_db_version() { function wc_admin_update_110_remove_facebook_note() { WC_Admin_Notes::delete_notes_with_name( 'wc-admin-facebook-extension' ); } + +/** + * Update DB Version. + */ +function wc_admin_update_110_db_version() { + Installer::update_db_version( '1.1.0' ); +} diff --git a/plugins/woocommerce-admin/src/Install.php b/plugins/woocommerce-admin/src/Install.php index 61026a058f5..c5f8ae1332d 100644 --- a/plugins/woocommerce-admin/src/Install.php +++ b/plugins/woocommerce-admin/src/Install.php @@ -42,6 +42,7 @@ class Install { ), '1.1.0' => array( 'wc_admin_update_110_remove_facebook_note', + 'wc_admin_update_110_db_version', ), );