WordPress.org

Make WordPress Core

Changeset 3199


Ignore:
Timestamp:
11/23/2005 12:38:56 AM (16 years ago)
Author:
ryan
Message:

Add some defaults to avoid MySQL warnings.

Location:
trunk
Files:
3 edited

Legend:

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

    r3192 r3199  
    3131    }
    3232   
    33     if ( $wp_current_db_version < 3183 )
     33    if ( $wp_current_db_version < 3199 )
    3434        upgrade_160();
    3535
  • trunk/wp-admin/upgrade-schema.php

    r3189 r3199  
    66  cat_name varchar(55) NOT NULL default '',
    77  category_nicename varchar(200) NOT NULL default '',
    8   category_description longtext NOT NULL,
     8  category_description longtext NOT NULL default '',
    99  category_parent bigint(20) NOT NULL default '0',
    1010  category_count bigint(20) NOT NULL default '0',
     
    6161  link_updated datetime NOT NULL default '0000-00-00 00:00:00',
    6262  link_rel varchar(255) NOT NULL default '',
    63   link_notes mediumtext NOT NULL,
     63  link_notes mediumtext NOT NULL default '',
    6464  link_rss varchar(255) NOT NULL default '',
    6565  PRIMARY KEY  (link_id),
     
    106106  post_title text NOT NULL,
    107107  post_category int(4) NOT NULL default '0',
    108   post_excerpt text NOT NULL,
     108  post_excerpt text NOT NULL default '',
    109109  post_status enum('publish','draft','private','static','object','attachment') NOT NULL default 'publish',
    110110  comment_status enum('open','closed','registered_only') NOT NULL default 'open',
     
    112112  post_password varchar(20) NOT NULL default '',
    113113  post_name varchar(200) NOT NULL default '',
    114   to_ping text NOT NULL,
    115   pinged text NOT NULL,
     114  to_ping text NOT NULL default '',
     115  pinged text NOT NULL default '',
    116116  post_modified datetime NOT NULL default '0000-00-00 00:00:00',
    117117  post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00',
    118   post_content_filtered text NOT NULL,
     118  post_content_filtered text NOT NULL default '',
    119119  post_parent bigint(20) NOT NULL default '0',
    120120  guid varchar(255) NOT NULL default '',
    121121  menu_order int(11) NOT NULL default '0',
    122   post_type varchar(100) NOT NULL,
    123   post_mime_type varchar(100) NOT NULL,
     122  post_type varchar(100) NOT NULL default '',
     123  post_mime_type varchar(100) NOT NULL default '',
    124124  comment_count bigint(20) NOT NULL default '0',
    125125  PRIMARY KEY  (ID),
  • trunk/wp-includes/version.php

    r3195 r3199  
    44
    55$wp_version = '2.0-beta-2';
    6 $wp_db_version = 3183;
     6$wp_db_version = 3199;
    77
    88?>
Note: See TracChangeset for help on using the changeset viewer.