diff --git src/wp-admin/includes/schema.php src/wp-admin/includes/schema.php
index 64ec6b7..a32b85c 100644
|
|
|
242 | 242 | |
243 | 243 | // Multisite global tables. |
244 | 244 | $ms_global_tables = "CREATE TABLE $wpdb->blogs ( |
245 | | blog_id bigint(20) NOT NULL auto_increment, |
246 | | site_id bigint(20) NOT NULL default '0', |
| 245 | blog_id bigint(20) unsigned NOT NULL auto_increment, |
| 246 | site_id bigint(20) unsigned NOT NULL default '0', |
247 | 247 | domain varchar(200) NOT NULL default '', |
248 | 248 | path varchar(100) NOT NULL default '', |
249 | 249 | registered datetime NOT NULL default '0000-00-00 00:00:00', |
… |
… |
|
259 | 259 | KEY lang_id (lang_id) |
260 | 260 | ) $charset_collate; |
261 | 261 | CREATE TABLE $wpdb->blog_versions ( |
262 | | blog_id bigint(20) NOT NULL default '0', |
| 262 | blog_id bigint(20) unsigned NOT NULL default '0', |
263 | 263 | db_version varchar(20) NOT NULL default '', |
264 | 264 | last_updated datetime NOT NULL default '0000-00-00 00:00:00', |
265 | 265 | PRIMARY KEY (blog_id), |
266 | 266 | KEY db_version (db_version) |
267 | 267 | ) $charset_collate; |
268 | 268 | CREATE TABLE $wpdb->registration_log ( |
269 | | ID bigint(20) NOT NULL auto_increment, |
| 269 | ID bigint(20) unsigned NOT NULL auto_increment, |
270 | 270 | email varchar(255) NOT NULL default '', |
271 | 271 | IP varchar(30) NOT NULL default '', |
272 | | blog_id bigint(20) NOT NULL default '0', |
| 272 | blog_id bigint(20) unsigned NOT NULL default '0', |
273 | 273 | date_registered datetime NOT NULL default '0000-00-00 00:00:00', |
274 | 274 | PRIMARY KEY (ID), |
275 | 275 | KEY IP (IP) |
276 | 276 | ) $charset_collate; |
277 | 277 | CREATE TABLE $wpdb->site ( |
278 | | id bigint(20) NOT NULL auto_increment, |
| 278 | id bigint(20) unsigned NOT NULL auto_increment, |
279 | 279 | domain varchar(200) NOT NULL default '', |
280 | 280 | path varchar(100) NOT NULL default '', |
281 | 281 | PRIMARY KEY (id), |
282 | 282 | KEY domain (domain(140),path(51)) |
283 | 283 | ) $charset_collate; |
284 | 284 | CREATE TABLE $wpdb->sitemeta ( |
285 | | meta_id bigint(20) NOT NULL auto_increment, |
286 | | site_id bigint(20) NOT NULL default '0', |
| 285 | meta_id bigint(20) unsigned NOT NULL auto_increment, |
| 286 | site_id bigint(20) unsigned NOT NULL default '0', |
287 | 287 | meta_key varchar(255) default NULL, |
288 | 288 | meta_value longtext, |
289 | 289 | PRIMARY KEY (meta_id), |
… |
… |
|
291 | 291 | KEY site_id (site_id) |
292 | 292 | ) $charset_collate; |
293 | 293 | CREATE TABLE $wpdb->signups ( |
294 | | signup_id bigint(20) NOT NULL auto_increment, |
| 294 | signup_id bigint(20) unsigned NOT NULL auto_increment, |
295 | 295 | domain varchar(200) NOT NULL default '', |
296 | 296 | path varchar(100) NOT NULL default '', |
297 | 297 | title longtext NOT NULL, |
diff --git src/wp-admin/includes/upgrade.php src/wp-admin/includes/upgrade.php
index 94ad771..7f5a8a3 100644
|
|
|
2834 | 2834 | $wpdb->query( "ALTER TABLE $wpdb->blogs CHANGE COLUMN archived archived varchar(1) NOT NULL default '0'" ); |
2835 | 2835 | $wpdb->query( "ALTER TABLE $wpdb->blogs CHANGE COLUMN archived archived tinyint(2) NOT NULL default 0" ); |
2836 | 2836 | } |
| 2837 | |
| 2838 | // Upgrade versions prior to 4.8 |
| 2839 | if ( $wp_current_db_version < 39357 ) { |
| 2840 | // Convert ID columns from signed to unsigned |
| 2841 | $wpdb->query( "ALTER TABLE $wpdb->blogs MODIFY blog_id bigint(20) unsigned NOT NULL auto_increment" ); |
| 2842 | $wpdb->query( "ALTER TABLE $wpdb->blogs MODIFY site_id bigint(20) unsigned NOT NULL default 0" ); |
| 2843 | $wpdb->query( "ALTER TABLE $wpdb->blog_versions MODIFY blog_id bigint(20) unsigned NOT NULL default 0" ); |
| 2844 | $wpdb->query( "ALTER TABLE $wpdb->registration_log MODIFY ID bigint(20) unsigned NOT NULL auto_increment" ); |
| 2845 | $wpdb->query( "ALTER TABLE $wpdb->registration_log MODIFY blog_id bigint(20) unsigned NOT NULL default 0" ); |
| 2846 | $wpdb->query( "ALTER TABLE $wpdb->site MODIFY id bigint(20) unsigned NOT NULL auto_increment" ); |
| 2847 | $wpdb->query( "ALTER TABLE $wpdb->sitemeta MODIFY meta_id bigint(20) unsigned NOT NULL auto_increment" ); |
| 2848 | $wpdb->query( "ALTER TABLE $wpdb->sitemeta MODIFY site_id bigint(20) unsigned NOT NULL default 0" ); |
| 2849 | $wpdb->query( "ALTER TABLE $wpdb->signups MODIFY signup_id bigint(20) unsigned NOT NULL auto_increment" ); |
| 2850 | } |
2837 | 2851 | } |
2838 | 2852 | |
2839 | 2853 | // Upgrade versions prior to 4.2. |
diff --git src/wp-includes/version.php src/wp-includes/version.php
index e01c790..20ca436 100644
|
|
|
11 | 11 | * |
12 | 12 | * @global int $wp_db_version |
13 | 13 | */ |
14 | | $wp_db_version = 38590; |
| 14 | $wp_db_version = 39357; |
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Holds the TinyMCE version |