| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function up(Schema $schema): void |
||
| 21 | { |
||
| 22 | $this->addSql("DELETE FROM settings WHERE variable = 'show_conditions_to_user'"); |
||
| 23 | |||
| 24 | $userType = ExtraField::USER_FIELD_TYPE; |
||
| 25 | $this->addSql(" |
||
| 26 | DELETE FROM extra_field_values |
||
| 27 | WHERE field_id IN ( |
||
| 28 | SELECT id FROM extra_field |
||
| 29 | WHERE item_type = $userType |
||
| 30 | AND variable IN ('gdpr','my_terms') |
||
| 31 | ) |
||
| 32 | "); |
||
| 33 | |||
| 34 | $this->addSql(" |
||
| 35 | DELETE FROM extra_field |
||
| 36 | WHERE item_type = $userType |
||
| 37 | AND variable IN ('gdpr','my_terms') |
||
| 43 |