最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

WooCommerce database upgrade behaviour

programmeradmin9浏览0评论

I've noticed a strange issue on one of the sites I manage with WooCommerce database upgrades, for the last couple of releases. Here's the upgrade path the WooCommerce plugin has been through on this site:

3.4.6 -> 3.5.0*
3.5.0 -> 3.5.1
3.5.1 -> 3.5.2*

For the two upgrades marked with an asterisk, a database upgrade was required (there's nothing in my notes about a database upgrade for the middle one, so I assume one wasn't required). But for both of those updates, I didn't get a message in the WordPress dashboard inviting me to run the updater - I only knew to expect one because I had done the same update on other sites.

I found that I could log in and do the update using the CLI though:

# wp wc update
Calling update function: wc_update_352_drop_download_log_fk
Success: 1 updates complete. Database version is 3.5.1
# wp wc update
Calling update function: wc_update_352_drop_download_log_fk
Success: 1 updates complete. Database version is 3.5.1
#

As you can see here though, for the most recent update, the database version remains at 3.5.1, despite the migration apparently running fine. When I try to run the updater again, the same process happens.

What's going on here?

WP Environment Info:

发布评论

评论列表(0)

  1. 暂无评论