WordPress.org

Make WordPress Core

Ticket #41281: 41281.diff

File 41281.diff, 920 bytes (added by Takahashi_Fumiki, 4 years ago)

Add upgrade query but I don't know numbering policy for $wp_db_version

  • src/wp-admin/includes/upgrade.php

     
    28562856                        maybe_convert_table_to_utf8mb4( $wpdb->termmeta );
    28572857                }
    28582858        }
     2859
     2860        // Upgrade version prior to 4.9.
     2861        if ( $wp_current_db_version < 38591 ) {
     2862                $wpdb->query( "ALTER TABLE $wpdb->postmeta ADD INDEX meta_key_meta_value(meta_key(191), meta_value(64))" );
     2863        }
    28592864}
    28602865
    28612866if ( !function_exists( 'install_global_terms' ) ) :
  • src/wp-includes/version.php

     
    1111 *
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 38590;
     14$wp_db_version = 38591;
    1515
    1616/**
    1717 * Holds the TinyMCE version