View file database/upgrades/20170120204802_convert_tables_myisam.php

File size: 614B
<?php

use Phinx\Migration\AbstractMigration;

class ConvertTablesMyisam extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
/*        $tables = $this->fetchAll('SHOW FULL TABLES');
        foreach ($tables as $table) {
            $this->execute("ALTER TABLE `".$table[0]."` ENGINE=MyISAM;");
        }*/
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
/*        $tables = $this->fetchAll('SHOW FULL TABLES');
        foreach ($tables as $table) {
            $this->execute("ALTER TABLE `".$table[0]."` ENGINE=InnoDB;");
        }*/
    }
}