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_redirect_route DROP CONSTRAINT FK_8681EEEE397EC969'); |
||
21 | $this->addSql('DROP INDEX idx_8681eeee397ec969'); |
||
22 | $this->addSql('ALTER TABLE swp_redirect_route ADD CONSTRAINT FK_8681EEEE397EC969 FOREIGN KEY (route_source_id) REFERENCES swp_route (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); |
||
23 | $this->addSql('CREATE UNIQUE INDEX UNIQ_8681EEEE397EC969 ON swp_redirect_route (route_source_id)'); |
||
24 | } |
||
25 | |||
37 |