From 20464812a0fdd13929b63639b389f88151a233b6 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 18 May 2015 16:22:11 -0500
Subject: [PATCH] Add `editor` to %thread_entry

---
 include/upgrader/streams/core/9143a511-00000000.patch.sql | 5 +++++
 setup/inc/streams/core/install-mysql.sql                  | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/include/upgrader/streams/core/9143a511-00000000.patch.sql b/include/upgrader/streams/core/9143a511-00000000.patch.sql
index 641d42d01..d85b3456f 100644
--- a/include/upgrader/streams/core/9143a511-00000000.patch.sql
+++ b/include/upgrader/streams/core/9143a511-00000000.patch.sql
@@ -36,6 +36,11 @@ UPDATE `%TABLE_PREFIX%thread_event` A1
 ALTER TABLE `%TABLE_PREFIX%user_email`
   ADD `flags` int(10) unsigned NOT NULL DEFAULT 0 AFTER `user_id`;
 
+ALTER TABLE `%TABLE_PREFIX%thread_entry`
+  ADD `editor` int(10) unsigned NULL AFTER `poster`,
+  ADD `editor_type` char(1) NULL AFTER `editor`;
+
+-- Finished with patch
 UPDATE `%TABLE_PREFIX%config`
     SET `value` = '00000000000000000000000000000000'
     WHERE `key` = 'schema_signature' AND `namespace` = 'core';
diff --git a/setup/inc/streams/core/install-mysql.sql b/setup/inc/streams/core/install-mysql.sql
index 8fb4ba4e3..0cb9bf6b6 100644
--- a/setup/inc/streams/core/install-mysql.sql
+++ b/setup/inc/streams/core/install-mysql.sql
@@ -632,6 +632,8 @@ CREATE TABLE `%TABLE_PREFIX%thread_entry` (
   `type` char(1) NOT NULL default '',
   `flags` int(11) unsigned NOT NULL default '0',
   `poster` varchar(128) NOT NULL default '',
+  `editor` int(10) unsigned NULL,
+  `editor_type` char(1) NULL,
   `source` varchar(32) NOT NULL default '',
   `title` varchar(255),
   `body` text NOT NULL,
-- 
GitLab