Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 11 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
35 | public function down(Schema $schema): void |
||
36 | { |
||
37 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
38 | |||
39 | $this->addSql('DROP INDEX swp_article_slug_not_null_deleted_at_idx'); |
||
40 | $this->addSql('DROP INDEX swp_article_slug_null_deleted_at_idx'); |
||
41 | $this->addSql('CREATE UNIQUE INDEX swp_article_slug_idx ON swp_article ( |
||
42 | slug, tenant_code, organization_id, |
||
43 | deleted_at |
||
44 | )'); |
||
45 | } |
||
46 | } |
||
47 |