| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 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->addSql('CREATE TABLE organization_journal (organization_id INTEGER NOT NULL, journal_id INTEGER NOT NULL, PRIMARY KEY(organization_id, journal_id), CONSTRAINT FK_C756F0E32C8A3DE FOREIGN KEY (organization_id) REFERENCES organization (id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT FK_C756F0E478E8802 FOREIGN KEY (journal_id) REFERENCES journal (id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); |
||
| 30 | $this->addSql('CREATE INDEX IDX_C756F0E478E8802 ON organization_journal (journal_id)'); |
||
| 31 | $this->addSql('CREATE INDEX IDX_C756F0E32C8A3DE ON organization_journal (organization_id)'); |
||
| 32 | } |
||
| 34 |