Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
25 | public function down(Schema $schema): void |
||
26 | { |
||
27 | // this down() migration is auto-generated, please modify it to your needs |
||
28 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
29 | |||
30 | $this->addSql('ALTER TABLE swp_route ADD root_id INT DEFAULT NULL'); |
||
31 | $this->addSql('ALTER TABLE swp_route ADD CONSTRAINT fk_5ce4ce5a79066886 FOREIGN KEY (root_id) REFERENCES swp_route (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); |
||
32 | $this->addSql('CREATE INDEX idx_5ce4ce5a79066886 ON swp_route (root_id)'); |
||
33 | } |
||
34 | } |
||
35 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.