| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function up(Schema $schema): void |
||
| 16 | { |
||
| 17 | // this up() migration is auto-generated, please modify it to your needs |
||
| 18 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
| 19 | |||
| 20 | $this->addSql('ALTER TABLE swp_article_author DROP CONSTRAINT FK_37796667294869C'); |
||
| 21 | $this->addSql('ALTER TABLE swp_article_author DROP CONSTRAINT FK_3779666F675F31B'); |
||
| 22 | $this->addSql('ALTER TABLE swp_article_author ADD CONSTRAINT FK_37796667294869C FOREIGN KEY (article_id) REFERENCES swp_article (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); |
||
| 23 | $this->addSql('ALTER TABLE swp_article_author ADD CONSTRAINT FK_3779666F675F31B FOREIGN KEY (author_id) REFERENCES swp_author (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); |
||
| 24 | } |
||
| 25 | |||
| 37 |