| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | public function revert_postgres_changes() |
||
| 51 | { |
||
| 52 | $fulltext = new \vse\similartopics\core\fulltext_support($this->db); |
||
| 53 | $indexes = $fulltext->get_pg_indexes(); |
||
| 54 | |||
| 55 | if ($fulltext->is_postgres() && !empty($indexes)) |
||
| 56 | { |
||
| 57 | foreach($indexes as $index) |
||
| 58 | { |
||
| 59 | $sql = 'DROP INDEX ' . $index; |
||
| 60 | $this->db->sql_query($sql); |
||
| 61 | } |
||
| 62 | |||
| 63 | } |
||
| 64 | |||
| 65 | } |
||
| 66 | |||
| 68 |