| 687 | | $result = $h->db->query($sql); |
| 688 | | if (!$result) { |
| 689 | | $sql = "ALTER TABLE `" . TABLE_PLUGINHOOKS . "` ADD INDEX (pluginhooks_siteid)"; |
| 690 | | $h->db->query($sql); |
| 691 | | } |
| | 687 | $result = $h->db->query($sql); |
| | 688 | if (!$result) { |
| | 689 | $sql = "ALTER TABLE `" . TABLE_PLUGINHOOKS . "` ADD INDEX (pluginhooks_siteid)"; |
| | 690 | $h->db->query($sql); |
| | 691 | } |
| | 692 | |
| | 693 | // Change post_title column from `post_title` varchar(255) NULL, to `post_title` text NULL, |
| | 694 | $exists = $h->db->column_exists('posts', 'post_title'); |
| | 695 | if (!$exists) { |
| | 696 | $sql = "ALTER TABLE " . TABLE_POSTS . " MODIFY post_title text NUL"; |
| | 697 | $h->db->query($h->db->prepare($sql)); |
| | 698 | } |