Changeset 31351
- Timestamp:
- 02/06/2015 05:25:22 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r31349 r31351 520 520 upgrade_400(); 521 521 522 if ( $wp_current_db_version < 313 49)522 if ( $wp_current_db_version < 31351 ) 523 523 upgrade_420(); 524 524 … … 1418 1418 global $wp_current_db_version, $wpdb; 1419 1419 1420 if ( $wp_current_db_version < 313 49&& $wpdb->charset === 'utf8mb4' ) {1420 if ( $wp_current_db_version < 31351 && $wpdb->charset === 'utf8mb4' ) { 1421 1421 if ( is_multisite() ) { 1422 1422 $tables = $wpdb->tables( 'blog' ); … … 1529 1529 1530 1530 // 4.2 1531 if ( $wp_current_db_version < 313 49&& $wpdb->charset === 'utf8mb4' ) {1531 if ( $wp_current_db_version < 31351 && $wpdb->charset === 'utf8mb4' ) { 1532 1532 if ( ! ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) && DO_NOT_UPGRADE_GLOBAL_TABLES ) ) { 1533 1533 $wpdb->query( "ALTER TABLE $wpdb->site DROP INDEX domain, ADD INDEX domain(domain(140),path(51))" ); … … 1666 1666 foreach ( $results as $column ) { 1667 1667 if ( $column->Collation ) { 1668 if ( 'utf8' === $column->Collation ) { 1668 list( $charset ) = explode( '_', $column->Collation ); 1669 $charset = strtolower( $charset ); 1670 if ( 'utf8' === $charset ) { 1669 1671 $has_utf8 = true; 1670 } elseif ( 'utf8mb4' !== $c olumn->Collation) {1672 } elseif ( 'utf8mb4' !== $charset ) { 1671 1673 // Don't upgrade tables that have non-utf8 columns. 1672 1674 return false; … … 2362 2364 2363 2365 // Upgrade versions prior to 4.2. 2364 if ( $wp_current_db_version < 313 49) {2366 if ( $wp_current_db_version < 31351 ) { 2365 2367 // So that we can change tables to utf8mb4, we need to shorten the index lengths to less than 767 bytes 2366 2368 $wpdb->query( "ALTER TABLE $wpdb->usermeta DROP INDEX meta_key, ADD INDEX meta_key(meta_key(191))" ); -
trunk/src/wp-includes/version.php
r31349 r31351 12 12 * @global int $wp_db_version 13 13 */ 14 $wp_db_version = 313 49;14 $wp_db_version = 31351; 15 15 16 16 /**
Note: See TracChangeset
for help on using the changeset viewer.