WordPress.org

Make WordPress Core

Changeset 947


Ignore:
Timestamp:
02/26/2004 10:21:33 PM (17 years ago)
Author:
emc3
Message:

Added per-post custom metadata support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r945 r947  
    273273
    274274<p>Comments are groovy...</p>
     275
     276<?php
     277$query = "
     278    CREATE TABLE $tablepostmeta (
     279      meta_id int(11) NOT NULL auto_increment,
     280      post_id int(11) NOT NULL default 0,
     281      meta_key varchar(255),
     282      meta_value text,
     283      PRIMARY KEY (meta_id),
     284      INDEX (post_id),
     285      INDEX (meta_key)
     286    )
     287    ";
     288
     289$q = $wpdb->query($query);
     290
     291
     292?>
     293
     294<p>Post metadata table ready to go...</p>
    275295
    276296<?php
Note: See TracChangeset for help on using the changeset viewer.