From c9cc15c4f423130718c78b0312a53066dad37cae Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 23 Nov 2005 00:38:56 +0000 Subject: [PATCH] Add some defaults to avoid MySQL warnings. git-svn-id: http://svn.automattic.com/wordpress/trunk@3199 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/upgrade-functions.php | 2 +- wp-admin/upgrade-schema.php | 16 ++++++++-------- wp-includes/version.php | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index 35f35e7eb2..ac680f4d5e 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -30,7 +30,7 @@ function upgrade_all() { upgrade_130(); } - if ( $wp_current_db_version < 3183 ) + if ( $wp_current_db_version < 3199 ) upgrade_160(); save_mod_rewrite_rules(); diff --git a/wp-admin/upgrade-schema.php b/wp-admin/upgrade-schema.php index 5c5dac6468..1b026db2ce 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, + category_description longtext NOT NULL default '', 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, + link_notes mediumtext NOT NULL default '', link_rss varchar(255) NOT NULL default '', PRIMARY KEY (link_id), KEY link_category (link_category), @@ -105,22 +105,22 @@ 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, + post_excerpt text NOT NULL default '', 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, - pinged text NOT NULL, + to_ping text NOT NULL default '', + pinged text NOT NULL default '', 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, + post_content_filtered text NOT NULL default '', post_parent bigint(20) NOT NULL default '0', guid varchar(255) NOT NULL default '', menu_order int(11) NOT NULL default '0', - post_type varchar(100) NOT NULL, - post_mime_type varchar(100) NOT NULL, + post_type varchar(100) NOT NULL default '', + post_mime_type varchar(100) NOT NULL default '', comment_count bigint(20) NOT NULL default '0', PRIMARY KEY (ID), KEY post_name (post_name) diff --git a/wp-includes/version.php b/wp-includes/version.php index 4ccb85ac16..2617db65c1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -3,6 +3,6 @@ // This just holds the version number, in a separate file so we can bump it without cluttering the SVN $wp_version = '2.0-beta-2'; -$wp_db_version = 3183; +$wp_db_version = 3199; ?>