Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function up(Schema $schema): void |
||
20 | { |
||
21 | $this->addSql('UPDATE extra_field SET visible_to_self = 0 WHERE visible_to_self IS NULL'); |
||
22 | $this->addSql('UPDATE extra_field SET visible_to_others = 0 WHERE visible_to_others IS NULL'); |
||
23 | $this->addSql('UPDATE extra_field SET changeable = 0 WHERE changeable IS NULL'); |
||
24 | $this->addSql('UPDATE extra_field SET filter = 0 WHERE filter IS NULL'); |
||
25 | |||
26 | $this->addSql('ALTER TABLE extra_field CHANGE visible_to_self visible_to_self TINYINT(1) DEFAULT 0 NOT NULL, CHANGE visible_to_others visible_to_others TINYINT(1) DEFAULT 0 NOT NULL, CHANGE changeable changeable TINYINT(1) DEFAULT 0 NOT NULL, CHANGE filter filter TINYINT(1) DEFAULT 0 NOT NULL'); |
||
27 | } |
||
29 |