| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function down(Schema $schema) |
||
| 30 | { |
||
| 31 | // this down() migration is auto-generated, please modify it to your needs |
||
| 32 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
| 33 | |||
| 34 | $this->addSql('DROP INDEX slug_uidx ON sylius_taxon_translation'); |
||
| 35 | $this->addSql('ALTER TABLE sylius_taxon_translation ADD permalink VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci'); |
||
| 36 | $this->addSql('CREATE UNIQUE INDEX permalink_uidx ON sylius_taxon_translation (locale, permalink)'); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |