| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class Version20220312135411 extends AbstractMigration |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @noinspection PhpMissingParentCallCommonInspection |
||
| 19 | */ |
||
| 20 | #[Override] |
||
| 24 | } |
||
| 25 | |||
| 26 | #[Override] |
||
| 27 | public function up(Schema $schema): void |
||
| 28 | { |
||
| 29 | // this up() migration is auto-generated, please modify it to your needs |
||
| 30 | $this->abortIf( |
||
| 31 | !$this->connection->getDatabasePlatform() instanceof AbstractMySQLPlatform, |
||
| 32 | 'Migration can only be executed safely on \'mysql\'.' |
||
| 33 | ); |
||
| 34 | |||
| 35 | $this->addSql('ALTER TABLE log_login_failure DROP FOREIGN KEY FK_EDB4AF3A76ED395'); |
||
| 36 | $this->addSql('ALTER TABLE log_login_failure ADD CONSTRAINT FK_EDB4AF3A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @noinspection PhpMissingParentCallCommonInspection |
||
| 41 | */ |
||
| 42 | #[Override] |
||
| 53 | } |
||
| 54 | } |
||
| 55 |