Clarifications on WP Multisite – Question on the database logical structure
-
Hello hackers!
Can i ask you a small question about the database logical structure of a WordPress enabled with Multisite?
According to the official documentation (Multisite_Table_Details) for each blog registered in a WordPress Multisite Network, in the database are generated only:
- wp_{blog_id}_commentmeta
- wp_{blog_id}_comments
- wp_{blog_id}_links
- wp_{blog_id}_options
- wp_{blog_id}_postmeta
- wp_{blog_id}_posts
- wp_{blog_id}_terms
- wp_{blog_id}_term_relationships
- wp_{blog_id}_term_taxonomy
…OK but, where are the users?
Obviously in the main
wp_users
! You will say.But if all multisite’s users are registered in wp_users, there must be a reference table that link users to their own blog, so to their blog_id, and I supposed that the only place where there could be something like this, could be…
…the field
mail
of the tablewp_registration_log
(!?!)I sincerely wish it were not so.
Especially considering that in the official documentation there’s nothing written about a logical foreign key in the field of ‘wp_registration_log’ table that links to the
wp_users
(Table:_wp_registration_log).I remind you the structure of this table:
wp_registration_log
:ID bigint(20) unsigned PRI NULL auto_increment email varchar(255) NO IP varchar(30) NO blog_id bigint(20) unsigned PRI 0 FK->wp_blogs.blog_id date_registered
(Note email, and blog_id).
I’m right? The
email
field in the tablewp_registration_log
is the logical foreign key that (linking to the fielduser_email
in the tablewp_users
) links the user to his blog?If so, it would not seem to be a very smart solution.
Am I wrong?
Tha(in advance)nks.
- The topic ‘Clarifications on WP Multisite – Question on the database logical structure’ is closed to new replies.