Make WordPress Core

Ticket #34692: 34692.2.diff

File 34692.2.diff, 640 bytes (added by skithund, 7 years ago)
  • tests/phpunit/includes/install.php

     
    3131require_once( dirname( __FILE__ ) . '/mock-mailer.php' );
    3232$phpmailer = new MockPHPMailer();
    3333
    34 $wpdb->query( 'SET storage_engine = INNODB' );
     34if ( version_compare( $wpdb->db_version(), '5.5.3', '>=' ) ) {
     35        $wpdb->query( 'SET default_storage_engine = InnoDB' );
     36} else {
     37        $wpdb->query( 'SET storage_engine = InnoDB' );
     38}
    3539$wpdb->select( DB_NAME, $wpdb->dbh );
    3640
    3741echo "Installing..." . PHP_EOL;