Changeset 34529 for trunk/src/wp-admin/includes/upgrade.php
- Timestamp:
- 09/25/2015 03:58:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r34030 r34529 2629 2629 $wpdb->query( "ALTER TABLE $wpdb->posts DROP INDEX post_name, ADD INDEX post_name(post_name(191))" ); 2630 2630 } 2631 2632 // Upgrade versions prior to 4.4. 2633 if ( $wp_current_db_version < 34370 ) { 2634 // If compatible termmeta table is found, use it, but enforce a proper index. 2635 if ( $wpdb->get_var( "SHOW TABLES LIKE '{$wpdb->termmeta}'" ) && $wpdb->get_results( "SHOW INDEX FROM {$wpdb->termmeta} WHERE Column_name = 'meta_key'" ) ) { 2636 $wpdb->query( "ALTER TABLE $wpdb->termmeta DROP INDEX meta_key, ADD INDEX meta_key(meta_key(191))" ); 2637 } 2638 } 2631 2639 } 2632 2640
Note: See TracChangeset
for help on using the changeset viewer.