3 use Phinx\Migration\AbstractMigration;
 
    7     private $innodb_tables = [
 
    8         'access_collection_membership',
 
   14         'entity_relationships',
 
   22         'users_remember_me_cookies',
 
   29     public function up() {
 
   31         $prefix = $this->getAdapter()->getOption(
'table_prefix');
 
   33         foreach ($this->innodb_tables as 
$table) {
 
   34             if (!$this->hasTable(
$table)) {
 
   39                 ALTER TABLE {$prefix}{$table} 
   50         $prefix = $this->getAdapter()->getOption(
'table_prefix');
 
   52         foreach ($this->innodb_tables as 
$table) {
 
   53             if (!$this->hasTable(
$table)) {
 
   58                 ALTER TABLE {$prefix}{$table} 
up()
Changes table engine to InnoDb.
down()
Changes table engine to MyISAM.