diff --git a/Migrations/Mysql/Version20160624203903.php b/Migrations/Mysql/Version20160624203903.php new file mode 100644 index 0000000..170882a --- /dev/null +++ b/Migrations/Mysql/Version20160624203903.php @@ -0,0 +1,53 @@ +abortIf( + $this->connection->getDatabasePlatform()->getName() != 'mysql', + 'Migration can only be executed safely on "mysql".' + ); + + $this->addSql('CREATE INDEX type_idx ON digicomp_sequence_domain_model_insert (type)'); + } + + /** + * @param Schema $schema + * + * @return void + */ + public function down(Schema $schema) + { + // this down() migration is autogenerated, please modify it to your needs + $this->abortIf( + $this->connection->getDatabasePlatform()->getName() != 'mysql', + 'Migration can only be executed safely on "mysql".' + ); + + $this->addSql('DROP INDEX type_idx ON digicomp_sequence_domain_model_insert'); + } +}