| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function down(Schema $schema): void |
||
| 25 | { |
||
| 26 | // this down() migration is auto-generated, please modify it to your needs |
||
| 27 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
| 28 | |||
| 29 | $this->addSql('DROP INDEX swp_article_slug_idx'); |
||
| 30 | $this->addSql('CREATE UNIQUE INDEX swp_article_slug_idx ON swp_article (slug, tenant_code, organization_id)'); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |