| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 55 | public function preUpgrade() { |
||
| 56 | $previousVersion = $this->config->getAppValue( |
||
| 57 | $this->appName, 'installed_version' |
||
| 58 | ); |
||
| 59 | |||
| 60 | $dbType = $this->config->getSystemValue('dbtype'); |
||
| 61 | if (version_compare($previousVersion, '8.2.2', '<') && |
||
| 62 | $dbType !== 'sqlite3' |
||
| 63 | ) { |
||
| 64 | $sql = 'ALTER TABLE `*PREFIX*news_feeds` DROP COLUMN |
||
| 65 | `last_modified`'; |
||
| 66 | $query = $this->db->prepare($sql); |
||
| 67 | $query->execute(); |
||
| 68 | } |
||
| 69 | } |
||
| 70 | |||
| 72 |