Make WordPress Core


Ignore:
Timestamp:
04/26/2004 11:54:52 PM (21 years ago)
Author:
saxmatt
Message:

Reducing queries and forward thinking database fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade-functions.php

    r1156 r1185  
    804804        delete_option($option);
    805805    endforeach;
    806 }
     806
     807    // Forward-thinking
     808    $wpdb->query("ALTER TABLE `$tableposts` CHANGE `post_status` `post_status` ENUM( 'publish', 'draft', 'private', 'static' ) DEFAULT 'publish' NOT NULL");
     809}
     810
     811    maybe_add_column($tableposts, 'post_parent', "ALTER TABLE `$tableposts` ADD `post_parent` INT NOT NULL ;");
    807812
    808813?>
Note: See TracChangeset for help on using the changeset viewer.