Added per-post custom metadata support.

git-svn-id: https://develop.svn.wordpress.org/trunk@947 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell 2004-02-26 22:21:33 +00:00
parent 15f1b35267
commit 3754111ee2
1 changed files with 20 additions and 0 deletions

View File

@ -273,6 +273,26 @@ $q = $wpdb->query($query);
<p>Comments are groovy...</p>
<?php
$query = "
CREATE TABLE $tablepostmeta (
meta_id int(11) NOT NULL auto_increment,
post_id int(11) NOT NULL default 0,
meta_key varchar(255),
meta_value text,
PRIMARY KEY (meta_id),
INDEX (post_id),
INDEX (meta_key)
)
";
$q = $wpdb->query($query);
?>
<p>Post metadata table ready to go...</p>
<?php
// $query = "DROP TABLE IF EXISTS $tableoptions";
// $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$tableoptions\" in the database.");