Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | #[Override] |
||
43 | public function down(Schema $schema): void |
||
44 | { |
||
45 | // this down() migration is auto-generated, please modify it to your needs |
||
46 | $this->abortIf( |
||
47 | !$this->connection->getDatabasePlatform() instanceof AbstractMySQLPlatform, |
||
48 | 'Migration can only be executed safely on \'mysql\'.' |
||
49 | ); |
||
50 | |||
51 | $this->addSql('ALTER TABLE log_login_failure DROP FOREIGN KEY FK_EDB4AF3A76ED395'); |
||
52 | $this->addSql('ALTER TABLE log_login_failure ADD CONSTRAINT FK_EDB4AF3A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)'); |
||
53 | } |
||
55 |