You appear to be a bot. Output may be restricted
Description
Ensure all the tables in the database have an engine type of InnoDB rather than MyISAMThe conversion is only performed if invoked as oikwp oik-innodb.php convert=y
Usage
oik_innodb_loaded();
Parameters
Returns
voidSource
File name: oik-batch/oik-innodb.phpLines:
1 to 15 of 15
function oik_innodb_loaded() { oik_require( "class-oik-innodb.php", "oik-batch" ); $oik_innodb = new OIK_innodb(); $myisam_count = $oik_innodb->query_count(); echo "MyISAM tables: " . $myisam_count . PHP_EOL; if ( $myisam_count ) { $convert = oik_batch_query_value_from_argv( "convert", null ); $convert = bw_validate_torf( $convert ); if ( $convert ) { echo "Converting the MyISAM tables to InnoDB" . PHP_EOL; $oik_innodb->maybe_convert(); } } }View on GitHub