| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class Version20220812161020 extends AbstractMigration |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @noinspection PhpMissingParentCallCommonInspection |
||
| 18 | */ |
||
| 19 | public function getDescription(): string |
||
| 20 | { |
||
| 21 | return 'TODO: Describe reason for this migration'; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function up(Schema $schema): void |
||
| 25 | { |
||
| 26 | // this up() migration is auto-generated, please modify it to your needs |
||
| 27 | $this->abortIf( |
||
| 28 | !$this->connection->getDatabasePlatform() instanceof AbstractMySQLPlatform, |
||
| 29 | 'Migration can only be executed safely on \'mysql\'.' |
||
| 30 | ); |
||
| 31 | |||
| 32 | $sql = <<<SQL |
||
| 33 | ALTER TABLE log_request |
||
| 34 | CHANGE headers headers LONGTEXT NOT NULL COMMENT '(DC2Type:json)', |
||
| 35 | CHANGE parameters parameters LONGTEXT NOT NULL COMMENT '(DC2Type:json)' |
||
| 36 | SQL; |
||
| 37 | |||
| 38 | $this->addSql($sql); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @noinspection PhpMissingParentCallCommonInspection |
||
| 43 | */ |
||
| 44 | public function down(Schema $schema): void |
||
| 59 | } |
||
| 60 | } |
||
| 61 |