Ticket #458 (new task)

Opened 9 months ago

Last modified 9 months ago

Proposal for wp_blogmeta table

Reported by: ktlee Assigned to: somebody
Priority: normal Milestone: WPMU 2.0
Component: component1 Version: 2.0
Severity: normal Keywords:
Cc:

Description

wp_blogmeta table consists of these fields (identical to sitemeta table and usermeta table)

- bmeta_id

- blog_id

- meta_key

- meta_value

When to store meta tag in this table

- used to store blog options that aren't specifically relate or need to individual blog's option table.

- store fields that shouldn't be in wp_site table

- store option fields that are only apply to WPMU only

- blog options that are not in WP should be stored here

Example Blog option Meta Tag

- report spam: people can mark this blogs as spam*

- report mature: people can mark this blogs as mature*

- db_version

- db_latest update

- language: language blogs are in

- individual blog upload space allowed

- alternative domain name

- premium account flags: buy more space, used custom domain,

* need a navigation bar on top similar to wordpress.com

What will this do?

- this will make query on some of the blog option possible, it's cumbersome to do a massive select with UNION between blog's option table

- developer can easily do SQL Query on blog space, spam, mature blog etc. in short, make SQL easy, and possible

- we don't need the wp_blog_versions table

- fix Ticket #111 - http://trac.mu.wordpress.org/ticket/111


Suggestions, questions, critiques are all welcome. =)

Cheers,

kt

Attachments

beaus-blog-meta.php (7.1 kB) - added by beaulebens on 10/19/07 22:28:42.
Beau's Blog Meta Plugin
bbm.sql (353 bytes) - added by beaulebens on 10/19/07 22:30:44.
Here's the SQL that I use for my table with BBM

Change History

10/19/07 22:28:42 changed by beaulebens

  • attachment beaus-blog-meta.php added.

Beau's Blog Meta Plugin

10/19/07 22:29:24 changed by beaulebens

I've actually done almost exactly this, but as a plugin. It's not released yet, but seems to be working fine in my development environment (part of a much bigger project). It makes use of the WP Object Cache as well.

I've attached it so see if that helps? Just drop it into mu-plugins and then you can call/use it whereever you want.

10/19/07 22:30:44 changed by beaulebens

  • attachment bbm.sql added.

Here's the SQL that I use for my table with BBM