Make WordPress Core

Ticket #4013: trunk-schema.diff

File trunk-schema.diff, 1.5 KB (added by charleshooper, 18 years ago)

Modifies database schema and bumps db_version

  • wp-includes/version.php

     
    33// This holds the version number in a separate file so we can bump it without cluttering the SVN
    44
    55$wp_version = '2.2-bleeding';
    6 $wp_db_version = 4860;
     6$wp_db_version = 4861;
    77
    88?>
  • wp-admin/upgrade-schema.php

     
    8686) $charset_collate;
    8787CREATE TABLE $wpdb->post2cat (
    8888  rel_id bigint(20) NOT NULL auto_increment,
    89   post_id bigint(20) NOT NULL default '0',
     89  post_id int(11) NOT NULL default '0',
    9090  category_id bigint(20) NOT NULL default '0',
    9191  PRIMARY KEY  (rel_id),
    9292  KEY post_id (post_id,category_id)
    9393) $charset_collate;
    9494CREATE TABLE $wpdb->postmeta (
    9595  meta_id bigint(20) NOT NULL auto_increment,
    96   post_id bigint(20) NOT NULL default '0',
     96  post_id int(11) NOT NULL default '0',
    9797  meta_key varchar(255) default NULL,
    9898  meta_value longtext,
    9999  PRIMARY KEY  (meta_id),
     
    101101  KEY meta_key (meta_key)
    102102) $charset_collate;
    103103CREATE TABLE $wpdb->posts (
    104   ID bigint(20) unsigned NOT NULL auto_increment,
     104  ID int(11) unsigned NOT NULL auto_increment,
    105105  post_author bigint(20) NOT NULL default '0',
    106106  post_date datetime NOT NULL default '0000-00-00 00:00:00',
    107107  post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',