| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class Version20210531094747 extends AbstractMigration |
||
| 14 | { |
||
| 15 | public function getDescription(): string |
||
| 16 | { |
||
| 17 | return ''; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function up(Schema $schema): void |
||
| 21 | { |
||
| 22 | // this up() migration is auto-generated, please modify it to your needs |
||
| 23 | $this->addSql('ALTER TABLE image ADD featuring_wander_id INT DEFAULT NULL'); |
||
| 24 | $this->addSql('ALTER TABLE image ADD CONSTRAINT FK_C53D045F5ED948F0 FOREIGN KEY (featuring_wander_id) REFERENCES wander (id)'); |
||
| 25 | $this->addSql('CREATE UNIQUE INDEX UNIQ_C53D045F5ED948F0 ON image (featuring_wander_id)'); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function down(Schema $schema): void |
||
| 34 | } |
||
| 35 | } |
||
| 36 |