We didn't know how big it'd get :)

git-svn-id: http://svn.automattic.com/wordpress/trunk@2200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-02 09:41:06 +00:00
parent 30213a51c1
commit c19e40c302
2 changed files with 3 additions and 8 deletions

View File

@ -134,10 +134,6 @@ function upgrade_110() {
$wpdb->query("UPDATE $wpdb->users SET user_registered = DATE_ADD(dateYMDhour, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)"); $wpdb->query("UPDATE $wpdb->users SET user_registered = DATE_ADD(dateYMDhour, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
} }
// First we need to enlarge option_value so it can hold larger values:
$wpdb->query("ALTER TABLE `$wpdb->options` CHANGE `option_value` `option_value` TEXT NOT NULL");
$wpdb->query("ALTER TABLE `$wpdb->comments` CHANGE `comment_author_url` `comment_author_url` VARCHAR( 200 ) NOT NULL");
} }
function upgrade_130() { function upgrade_130() {

View File

@ -5,10 +5,9 @@ $wp_queries="CREATE TABLE $wpdb->categories (
cat_ID int(4) NOT NULL auto_increment, cat_ID int(4) NOT NULL auto_increment,
cat_name varchar(55) NOT NULL default '', cat_name varchar(55) NOT NULL default '',
category_nicename varchar(200) NOT NULL default '', category_nicename varchar(200) NOT NULL default '',
category_description text NOT NULL, category_description lengtext NOT NULL,
category_parent int(4) NOT NULL default '0', category_parent int(4) NOT NULL default '0',
PRIMARY KEY (cat_ID), PRIMARY KEY (cat_ID),
UNIQUE KEY cat_name (cat_name),
KEY category_nicename (category_nicename) KEY category_nicename (category_nicename)
); );
CREATE TABLE $wpdb->comments ( CREATE TABLE $wpdb->comments (
@ -102,7 +101,7 @@ CREATE TABLE $wpdb->posts (
post_author int(4) NOT NULL default '0', post_author int(4) NOT NULL default '0',
post_date datetime NOT NULL default '0000-00-00 00:00:00', post_date datetime NOT NULL default '0000-00-00 00:00:00',
post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
post_content text NOT NULL, post_content longtext NOT NULL,
post_title text NOT NULL, post_title text NOT NULL,
post_category int(4) NOT NULL default '0', post_category int(4) NOT NULL default '0',
post_excerpt text NOT NULL, post_excerpt text NOT NULL,
@ -144,7 +143,7 @@ CREATE TABLE $wpdb->users (
user_idmode varchar(20) NOT NULL default '', user_idmode varchar(20) NOT NULL default '',
user_activation_key varchar(60) NOT NULL default '', user_activation_key varchar(60) NOT NULL default '',
user_status int(11) NOT NULL default '0', user_status int(11) NOT NULL default '0',
user_description TEXT NOT NULL default '', user_description longtext NOT NULL default '',
PRIMARY KEY (ID), PRIMARY KEY (ID),
UNIQUE KEY user_login (user_login) UNIQUE KEY user_login (user_login)
);"; );";