[wp-trac] [WordPress Trac] #46167: Network update does not create wp_blogmeta table

WordPress Trac noreply at wordpress.org
Sun Feb 24 23:47:32 UTC 2019


#46167: Network update does not create wp_blogmeta table
-----------------------------+------------------------
 Reporter:  waryn            |       Owner:  (none)
     Type:  defect (bug)     |      Status:  reopened
 Priority:  normal           |   Milestone:  5.1.1
Component:  Upgrade/Install  |     Version:  5.1
 Severity:  major            |  Resolution:
 Keywords:                   |     Focuses:  multisite
-----------------------------+------------------------

Comment (by pbiron):

 Replying to [comment:15 pento]:
 > I'm wondering if the table isn't being created due to
 `wp_should_upgrade_global_tables()` return `false`.
 >
 > This could happen in one of the following circumstances:
 >
 > - The `DO_NOT_UPGRADE_GLOBAL_TABLES` constant is defined.

 That was not defined (I didn't even know it existed, and I just checked,
 none of the plugins on the site had defined it).

 > - The upgrade was initiated from a network other than the main network.

 There was only 1 network.

 > - The upgrade was initiated from a site other than the main site.

 There was only 1 site in that one network.  It used to be a single site
 (on my local dev machine).  Since I needed to upgrade it, I figured I'd
 turn it into a multisite first so that I could try to debug this ticket.

 Like I said, I think the upgrade process didn't even execute the line with
 `wp_should_upgrade_global_tables()` because `$cqueries` was already an
 empty array a few lines above that.  I say "I think" because my memory of
 stepping through the code is a little fuzzy at this point.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46167#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list