From 8bb98038ab5ac14a108df7bc6cd8211409c7c16e Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 9 Dec 2005 19:04:12 +0000 Subject: [PATCH] TEXT fields cannot have defaults. #1953 git-svn-id: http://svn.automattic.com/wordpress/trunk@3281 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/upgrade-schema.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/upgrade-schema.php b/wp-admin/upgrade-schema.php index 7c00c67a8f..570030e1d3 100644 --- a/wp-admin/upgrade-schema.php +++ b/wp-admin/upgrade-schema.php @@ -5,7 +5,7 @@ $wp_queries="CREATE TABLE $wpdb->categories ( cat_ID bigint(20) NOT NULL auto_increment, cat_name varchar(55) NOT NULL default '', category_nicename varchar(200) NOT NULL default '', - category_description longtext NOT NULL default '', + category_description longtext NOT NULL, category_parent bigint(20) NOT NULL default '0', category_count bigint(20) NOT NULL default '0', PRIMARY KEY (cat_ID), @@ -60,7 +60,7 @@ CREATE TABLE $wpdb->links ( link_rating int(11) NOT NULL default '0', link_updated datetime NOT NULL default '0000-00-00 00:00:00', link_rel varchar(255) NOT NULL default '', - link_notes mediumtext NOT NULL default '', + link_notes mediumtext NOT NULL, link_rss varchar(255) NOT NULL default '', PRIMARY KEY (link_id), KEY link_category (link_category), @@ -105,17 +105,17 @@ CREATE TABLE $wpdb->posts ( post_content longtext NOT NULL, post_title text NOT NULL, post_category int(4) NOT NULL default '0', - post_excerpt text NOT NULL default '', + post_excerpt text NOT NULL, post_status enum('publish','draft','private','static','object','attachment') NOT NULL default 'publish', comment_status enum('open','closed','registered_only') NOT NULL default 'open', ping_status enum('open','closed') NOT NULL default 'open', post_password varchar(20) NOT NULL default '', post_name varchar(200) NOT NULL default '', - to_ping text NOT NULL default '', - pinged text NOT NULL default '', + to_ping text NOT NULL, + pinged text NOT NULL, post_modified datetime NOT NULL default '0000-00-00 00:00:00', post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00', - post_content_filtered text NOT NULL default '', + post_content_filtered text NOT NULL, post_parent bigint(20) NOT NULL default '0', guid varchar(255) NOT NULL default '', menu_order int(11) NOT NULL default '0',