diff --git a/app/Migrations/Schema/V111/Version20160907150300.php b/app/Migrations/Schema/V111/Version20160907150300.php new file mode 100644 index 0000000000..25e0b4c7c2 --- /dev/null +++ b/app/Migrations/Schema/V111/Version20160907150300.php @@ -0,0 +1,215 @@ +names as $name) { + if (!$schema->hasTable($name)) { + continue; + } + + $this->addSql("ALTER TABLE $name ENGINE=InnoDB"); + } + } + + /** + * @param Schema $schema + * @throws \Doctrine\DBAL\DBALException + * @throws \Doctrine\DBAL\Schema\SchemaException + */ + public function down(Schema $schema) + { + foreach ($this->names as $name) { + if (!$schema->hasTable($name)) { + continue; + } + + $this->addSql("ALTER TABLE $name ENGINE=MyISAM"); + } + } +}