@@ -356,8 +356,7 @@ |
||
| 356 | 356 | if ($this->db->isSQLite()) { |
| 357 | 357 | $info = $this->db->query("PRAGMA table_info({$name})")->fetchAll(); |
| 358 | 358 | $cols = array_column($info, 'name'); |
| 359 | - } |
|
| 360 | - else { |
|
| 359 | + } else { |
|
| 361 | 360 | $cols = $this->db->query("SELECT column_name FROM information_schema.tables WHERE table_name = \"{$name}\"")->fetchAll(DB::FETCH_COLUMN); |
| 362 | 361 | } |
| 363 | 362 | if (!$cols) { |