Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class Version20210603150318 extends AbstractMigration |
||
15 | { |
||
16 | /** |
||
17 | * @noinspection PhpMissingParentCallCommonInspection |
||
18 | */ |
||
19 | public function getDescription(): string |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @throws Exception |
||
26 | */ |
||
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()->getName() !== 'mysql', |
||
32 | 'Migration can only be executed safely on \'mysql\'.' |
||
33 | ); |
||
34 | |||
35 | $this->addSql('ALTER TABLE log_request CHANGE is_master_request is_main_request TINYINT(1) NOT NULL'); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @noinspection PhpMissingParentCallCommonInspection |
||
40 | * |
||
41 | * @throws Exception |
||
42 | */ |
||
43 | public function down(Schema $schema): void |
||
52 | } |
||
53 | } |
||
54 |