| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function up(Schema $schema): void |
||
| 19 | { |
||
| 20 | // Settings to remove everywhere |
||
| 21 | $vars = [ |
||
| 22 | 'bug_report_link', |
||
| 23 | 'enable_webcam_clip', |
||
| 24 | 'hide_dltt_markup', |
||
| 25 | 'lp_category_accordion', |
||
| 26 | 'enable_bootstrap_in_documents_html', |
||
| 27 | ]; |
||
| 28 | |||
| 29 | // Remove potential templates (no-op if none exist) |
||
| 30 | $this->addSql( |
||
| 31 | "DELETE FROM settings_value_template WHERE variable IN (?)", |
||
| 32 | [$vars], |
||
| 33 | [Connection::PARAM_STR_ARRAY] |
||
| 34 | ); |
||
| 35 | |||
| 36 | // Remove catalog definitions |
||
| 37 | $this->addSql( |
||
| 38 | "DELETE FROM settings WHERE variable IN (?)", |
||
| 39 | [$vars], |
||
| 40 | [Connection::PARAM_STR_ARRAY] |
||
| 41 | ); |
||
| 44 |