Ticket #9422: 9422-ids.diff
File 9422-ids.diff, 5.3 KB (added by , 15 years ago) |
---|
-
Users/denis/Sites/wp/wp-includes/version.php
15 15 * 16 16 * @global int $wp_db_version 17 17 */ 18 $wp_db_version = 10 738;18 $wp_db_version = 10850; 19 19 20 20 ?> -
Users/denis/Sites/wp/wp-admin/includes/schema.php
28 28 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 '', 34 34 term_group bigint(10) NOT NULL default 0, … … 37 37 KEY name (name) 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), 47 47 UNIQUE KEY term_id_taxonomy (term_id,taxonomy), 48 48 KEY taxonomy (taxonomy) 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), 55 55 KEY term_taxonomy_id (term_taxonomy_id) 56 56 ) $charset_collate; 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 '', 62 62 comment_author_url varchar(200) NOT NULL default '', … … 69 69 comment_agent varchar(255) 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), 75 75 KEY comment_post_ID (comment_post_ID), … … 77 77 KEY comment_date_gmt (comment_date_gmt) 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 '', 83 83 link_image varchar(255) NOT NULL default '', … … 85 85 link_category bigint(20) NOT NULL default '0', 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', 91 91 link_rel varchar(255) NOT NULL default '', … … 96 96 KEY link_visible (link_visible) 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 '', 102 102 option_value longtext NOT NULL, … … 105 105 KEY option_name (option_name) 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, 112 112 PRIMARY KEY (meta_id), … … 115 115 ) $charset_collate; 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', 121 121 post_content longtext NOT NULL, … … 132 132 post_modified 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', 138 138 post_type varchar(20) NOT NULL default 'post', … … 159 159 KEY user_nicename (user_nicename) 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, 166 166 PRIMARY KEY (umeta_id),