From 8f44d15718f0073a198872106df76f35d4e5a106 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 9 Aug 2013 18:52:23 +0000
Subject: [PATCH] Remove full-text indexes in the upgrader

---
 include/upgrader/streams/core/98ae1ed2-e342f869.patch.sql | 6 ------
 include/upgrader/streams/core/c00511c7-7be60a84.patch.sql | 6 ++----
 include/upgrader/streams/core/f8856d56-abe9c0cb.patch.sql | 3 +--
 3 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/include/upgrader/streams/core/98ae1ed2-e342f869.patch.sql b/include/upgrader/streams/core/98ae1ed2-e342f869.patch.sql
index c1f097897..567fc17d5 100644
--- a/include/upgrader/streams/core/98ae1ed2-e342f869.patch.sql
+++ b/include/upgrader/streams/core/98ae1ed2-e342f869.patch.sql
@@ -127,12 +127,6 @@ ALTER TABLE `%TABLE_PREFIX%ticket_message`
     ADD `messageId` VARCHAR( 255 ) NULL AFTER `ticket_id`,
     ADD INDEX ( `messageId` ) ;
 
-ALTER TABLE `%TABLE_PREFIX%ticket_message` ADD FULLTEXT (`message`);
-
-ALTER TABLE `%TABLE_PREFIX%ticket_response` ADD FULLTEXT (`response`);
-
-ALTER TABLE `%TABLE_PREFIX%ticket_note` ADD FULLTEXT (`note`);
-
 DROP TABLE IF EXISTS `%TABLE_PREFIX%api_key`;
 CREATE TABLE `%TABLE_PREFIX%api_key` (
   `id` int(10) unsigned NOT NULL auto_increment,
diff --git a/include/upgrader/streams/core/c00511c7-7be60a84.patch.sql b/include/upgrader/streams/core/c00511c7-7be60a84.patch.sql
index 1be401052..e56522724 100644
--- a/include/upgrader/streams/core/c00511c7-7be60a84.patch.sql
+++ b/include/upgrader/streams/core/c00511c7-7be60a84.patch.sql
@@ -256,8 +256,7 @@ CREATE TABLE IF NOT EXISTS `%TABLE_PREFIX%faq` (
   PRIMARY KEY  (`faq_id`),
   UNIQUE KEY `question` (`question`),
   KEY `category_id` (`category_id`),
-  KEY `ispublished` (`ispublished`),
-  FULLTEXT KEY `faq` (`question`,`answer`,`keywords`)
+  KEY `ispublished` (`ispublished`)
 ) DEFAULT CHARSET=utf8;
 
 DROP TABLE IF EXISTS `%TABLE_PREFIX%faq_attachment`;
@@ -281,8 +280,7 @@ ALTER TABLE `%TABLE_PREFIX%kb_premade`
   CHANGE `title` `title` VARCHAR( 255 ) NOT NULL DEFAULT '',
   CHANGE `answer` `response` TEXT NOT NULL,
   ADD `notes` TEXT NOT NULL AFTER `response`,
-  DROP INDEX `title`,
-  ADD FULLTEXT `resp` (`title` ,`response`);
+  DROP INDEX `title`;
 
 ALTER TABLE `%TABLE_PREFIX%kb_premade` RENAME TO `%TABLE_PREFIX%canned_response`;
 
diff --git a/include/upgrader/streams/core/f8856d56-abe9c0cb.patch.sql b/include/upgrader/streams/core/f8856d56-abe9c0cb.patch.sql
index b6b0f19fa..09b593a16 100644
--- a/include/upgrader/streams/core/f8856d56-abe9c0cb.patch.sql
+++ b/include/upgrader/streams/core/f8856d56-abe9c0cb.patch.sql
@@ -29,8 +29,7 @@ CREATE TABLE `%TABLE_PREFIX%ticket_thread` (
   KEY `ticket_id` (`ticket_id`),
   KEY `staff_id` (`staff_id`),
   KEY `old_pk` (`old_pk`),
-  KEY `created` (`created`),
-  FULLTEXT KEY `body` (`body`)
+  KEY `created` (`created`)
 ) DEFAULT CHARSET=utf8;
 
 DROP TABLE IF EXISTS `%TABLE_PREFIX%ticket_email_info`;
-- 
GitLab