| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function down(Schema $schema): void |
||
| 27 | { |
||
| 28 | // this down() migration is auto-generated, please modify it to your needs |
||
| 29 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
| 30 | |||
| 31 | $this->addSql('ALTER TABLE swp_article_author DROP CONSTRAINT fk_37796667294869c'); |
||
| 32 | $this->addSql('ALTER TABLE swp_article_author DROP CONSTRAINT fk_3779666f675f31b'); |
||
| 33 | $this->addSql('ALTER TABLE swp_article_author ADD CONSTRAINT fk_37796667294869c FOREIGN KEY (article_id) REFERENCES swp_article (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); |
||
| 34 | $this->addSql('ALTER TABLE swp_article_author ADD CONSTRAINT fk_3779666f675f31b FOREIGN KEY (author_id) REFERENCES swp_author (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |