Make WordPress Core


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

Add some defaults to avoid MySQL warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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),
Note: See TracChangeset for help on using the changeset viewer.