| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class Version20220312135411 extends AbstractMigration |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @noinspection PhpMissingParentCallCommonInspection |
||
| 16 | */ |
||
| 17 | public function getDescription(): string |
||
| 20 | } |
||
| 21 | |||
| 22 | public function up(Schema $schema): void |
||
| 23 | { |
||
| 24 | $this->addSql('ALTER TABLE log_login_failure DROP FOREIGN KEY FK_EDB4AF3A76ED395'); |
||
| 25 | $this->addSql('ALTER TABLE log_login_failure ADD CONSTRAINT FK_EDB4AF3A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @noinspection PhpMissingParentCallCommonInspection |
||
| 30 | */ |
||
| 31 | public function down(Schema $schema): void |
||
| 35 | } |
||
| 36 | } |
||
| 37 |