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:
parent
15f1b35267
commit
3754111ee2
|
@ -273,6 +273,26 @@ $q = $wpdb->query($query);
|
||||||
|
|
||||||
<p>Comments are groovy...</p>
|
<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
|
<?php
|
||||||
// $query = "DROP TABLE IF EXISTS $tableoptions";
|
// $query = "DROP TABLE IF EXISTS $tableoptions";
|
||||||
// $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$tableoptions\" in the database.");
|
// $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$tableoptions\" in the database.");
|
||||||
|
|
Loading…
Reference in New Issue