From c04443c2d3f85480e10e5698e58749ecf7277b64 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Thu, 17 Dec 2015 08:30:06 -0200 Subject: [PATCH] Added upgrade script for #9868 cc @mikejolley --- includes/class-wc-install.php | 3 +- includes/updates/woocommerce-update-2.5.php | 34 +++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 includes/updates/woocommerce-update-2.5.php diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index 02964a82a2a..ce2966a758c 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -25,7 +25,8 @@ class WC_Install { '2.2.0' => 'updates/woocommerce-update-2.2.php', '2.3.0' => 'updates/woocommerce-update-2.3.php', '2.4.0' => 'updates/woocommerce-update-2.4.php', - '2.4.1' => 'updates/woocommerce-update-2.4.1.php' + '2.4.1' => 'updates/woocommerce-update-2.4.1.php', + '2.5.0' => 'updates/woocommerce-update-2.5.php', ); /** diff --git a/includes/updates/woocommerce-update-2.5.php b/includes/updates/woocommerce-update-2.5.php new file mode 100644 index 00000000000..94a60136453 --- /dev/null +++ b/includes/updates/woocommerce-update-2.5.php @@ -0,0 +1,34 @@ +update( + $wpdb->postmeta, + array( + 'meta_value' => 'LAK' + ), + array( + 'meta_key' => '_order_currency', + 'meta_value' => 'KIP' + ) +);