Changeset 10852
- Timestamp:
- 03/31/2009 09:57:51 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/schema.php
r10842 r10852 29 29 /** Create WordPress database tables SQL */ 30 30 $wp_queries = "CREATE TABLE $wpdb->terms ( 31 term_id bigint(20) NOT NULL auto_increment,31 term_id bigint(20) unsigned NOT NULL auto_increment, 32 32 name varchar(200) NOT NULL default '', 33 33 slug varchar(200) NOT NULL default '', … … 38 38 ) $charset_collate; 39 39 CREATE TABLE $wpdb->term_taxonomy ( 40 term_taxonomy_id bigint(20) NOT NULL auto_increment,41 term_id bigint(20) NOT NULL default 0,40 term_taxonomy_id bigint(20) unsigned NOT NULL auto_increment, 41 term_id bigint(20) unsigned NOT NULL default 0, 42 42 taxonomy varchar(32) NOT NULL default '', 43 43 description longtext NOT NULL, 44 parent bigint(20) NOT NULL default 0,44 parent bigint(20) unsigned NOT NULL default 0, 45 45 count bigint(20) NOT NULL default 0, 46 46 PRIMARY KEY (term_taxonomy_id), … … 49 49 ) $charset_collate; 50 50 CREATE TABLE $wpdb->term_relationships ( 51 object_id bigint(20) NOT NULL default 0,52 term_taxonomy_id bigint(20) NOT NULL default 0,51 object_id bigint(20) unsigned NOT NULL default 0, 52 term_taxonomy_id bigint(20) unsigned NOT NULL default 0, 53 53 term_order int(11) NOT NULL default 0, 54 54 PRIMARY KEY (object_id,term_taxonomy_id), … … 57 57 CREATE TABLE $wpdb->comments ( 58 58 comment_ID bigint(20) unsigned NOT NULL auto_increment, 59 comment_post_ID int(11)NOT NULL default '0',59 comment_post_ID bigint(20) unsigned NOT NULL default '0', 60 60 comment_author tinytext NOT NULL, 61 61 comment_author_email varchar(100) NOT NULL default '', … … 70 70 comment_type varchar(20) NOT NULL default '', 71 71 comment_parent bigint(20) NOT NULL default '0', 72 user_id bigint(20) NOT NULL default '0',72 user_id bigint(20) unsigned NOT NULL default '0', 73 73 PRIMARY KEY (comment_ID), 74 74 KEY comment_approved (comment_approved), … … 78 78 ) $charset_collate; 79 79 CREATE TABLE $wpdb->links ( 80 link_id bigint(20) NOT NULL auto_increment,80 link_id bigint(20) unsigned NOT NULL auto_increment, 81 81 link_url varchar(255) NOT NULL default '', 82 82 link_name varchar(255) NOT NULL default '', … … 86 86 link_description varchar(255) NOT NULL default '', 87 87 link_visible varchar(20) NOT NULL default 'Y', 88 link_owner int(11) NOT NULL default '1',88 link_owner bigint(20) NOT NULL default '1', 89 89 link_rating int(11) NOT NULL default '0', 90 90 link_updated datetime NOT NULL default '0000-00-00 00:00:00', … … 97 97 ) $charset_collate; 98 98 CREATE TABLE $wpdb->options ( 99 option_id bigint(20) NOT NULL auto_increment,99 option_id bigint(20) unsigned NOT NULL auto_increment, 100 100 blog_id int(11) NOT NULL default '0', 101 101 option_name varchar(64) NOT NULL default '', … … 106 106 ) $charset_collate; 107 107 CREATE TABLE $wpdb->postmeta ( 108 meta_id bigint(20) NOT NULL auto_increment,109 post_id bigint(20) NOT NULL default '0',108 meta_id bigint(20) unsigned NOT NULL auto_increment, 109 post_id bigint(20) unsigned NOT NULL default '0', 110 110 meta_key varchar(255) default NULL, 111 111 meta_value longtext, … … 116 116 CREATE TABLE $wpdb->posts ( 117 117 ID bigint(20) unsigned NOT NULL auto_increment, 118 post_author bigint(20) NOT NULL default '0',118 post_author bigint(20) unsigned NOT NULL default '0', 119 119 post_date datetime NOT NULL default '0000-00-00 00:00:00', 120 120 post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', … … 133 133 post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00', 134 134 post_content_filtered text NOT NULL, 135 post_parent bigint(20) NOT NULL default '0',135 post_parent bigint(20) unsigned NOT NULL default '0', 136 136 guid varchar(255) NOT NULL default '', 137 137 menu_order int(11) NOT NULL default '0', … … 160 160 ) $charset_collate; 161 161 CREATE TABLE $wpdb->usermeta ( 162 umeta_id bigint(20) NOT NULL auto_increment,163 user_id bigint(20) NOT NULL default '0',162 umeta_id bigint(20) unsigned NOT NULL auto_increment, 163 user_id bigint(20) unsigned NOT NULL default '0', 164 164 meta_key varchar(255) default NULL, 165 165 meta_value longtext, -
trunk/wp-includes/version.php
r10768 r10852 16 16 * @global int $wp_db_version 17 17 */ 18 $wp_db_version = 10 738;18 $wp_db_version = 10850; 19 19 20 20 ?>
Note: See TracChangeset
for help on using the changeset viewer.