Changeset 47193
- Timestamp:
- 02/05/2020 06:19:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dbdelta.php
r47185 r47193 41 41 42 42 $db_version = $wpdb->db_version(); 43 $db_engine = ''; 44 45 if ( version_compare( $db_version, '5.7', '<' ) ) { 46 // Forcing MyISAM, because InnoDB only started supporting FULLTEXT indexes in MySQL 5.7. 47 $db_engine = 'ENGINE=MyISAM'; 48 } 43 49 44 50 if ( version_compare( $db_version, '8.0.17', '<' ) ) { … … 47 53 } 48 54 49 // Forcing MyISAM, because InnoDB only started supporting FULLTEXT indexes in MySQL 5.7.50 55 $wpdb->query( 51 56 $wpdb->prepare( … … 60 65 KEY key_1 (column_1(%d)), 61 66 KEY compound_key (id,column_1(%d)), 62 FULLTEXT KEY fulltext_key (column_1) 63 ) ENGINE=MyISAM 67 FULLTEXT KEY fulltext_key (column_1)" . 68 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared 69 ") $db_engine 64 70 ", 65 71 $this->max_index_length,
Note: See TracChangeset
for help on using the changeset viewer.