From fdaec4aaaed21a3edd4d58beb1966f84afaa75b4 Mon Sep 17 00:00:00 2001 From: Ferdinand Kuhl Date: Fri, 24 Jun 2016 20:40:25 +0200 Subject: [PATCH] TASK: Adding missing index migration --- Migrations/Mysql/Version20160624203903.php | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Migrations/Mysql/Version20160624203903.php 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'); + } +}