From e4ddd09f9bfb0e20c34bb1d526aa71a8ca588c91 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 14 Oct 2013 15:44:34 +0000
Subject: [PATCH] Index form_entry on (object_type, object_id)

---
 include/upgrader/streams/core.sig                             | 2 +-
 ...ca2-17f0cc96.cleanup.sql => dad45ca2-61c9d5d7.cleanup.sql} | 0
 ...ad45ca2-17f0cc96.patch.sql => dad45ca2-61c9d5d7.patch.sql} | 4 ++--
 ...{dad45ca2-17f0cc96.task.php => dad45ca2-61c9d5d7.task.php} | 0
 setup/inc/streams/core/install-mysql.sql                      | 2 +-
 5 files changed, 4 insertions(+), 4 deletions(-)
 rename include/upgrader/streams/core/{dad45ca2-17f0cc96.cleanup.sql => dad45ca2-61c9d5d7.cleanup.sql} (100%)
 rename include/upgrader/streams/core/{dad45ca2-17f0cc96.patch.sql => dad45ca2-61c9d5d7.patch.sql} (97%)
 rename include/upgrader/streams/core/{dad45ca2-17f0cc96.task.php => dad45ca2-61c9d5d7.task.php} (100%)

diff --git a/include/upgrader/streams/core.sig b/include/upgrader/streams/core.sig
index ce6d3fd65..dde637829 100644
--- a/include/upgrader/streams/core.sig
+++ b/include/upgrader/streams/core.sig
@@ -1 +1 @@
-17f0cc96b366a747113622fa4780f9bc
+61c9d5d71093d3595b3d41855386a905
diff --git a/include/upgrader/streams/core/dad45ca2-17f0cc96.cleanup.sql b/include/upgrader/streams/core/dad45ca2-61c9d5d7.cleanup.sql
similarity index 100%
rename from include/upgrader/streams/core/dad45ca2-17f0cc96.cleanup.sql
rename to include/upgrader/streams/core/dad45ca2-61c9d5d7.cleanup.sql
diff --git a/include/upgrader/streams/core/dad45ca2-17f0cc96.patch.sql b/include/upgrader/streams/core/dad45ca2-61c9d5d7.patch.sql
similarity index 97%
rename from include/upgrader/streams/core/dad45ca2-17f0cc96.patch.sql
rename to include/upgrader/streams/core/dad45ca2-61c9d5d7.patch.sql
index d6c7bd630..5f20643aa 100644
--- a/include/upgrader/streams/core/dad45ca2-17f0cc96.patch.sql
+++ b/include/upgrader/streams/core/dad45ca2-61c9d5d7.patch.sql
@@ -1,6 +1,6 @@
 /**
  * @version v1.8.0-dpr1 Dynamic Forms
- * @signature 17f0cc96b366a747113622fa4780f9bc
+ * @signature 61c9d5d71093d3595b3d41855386a905
  *
  * Adds the database structure for the dynamic forms feature and migrates
  * the database from the legacy <=1.7 format to the new format with the
@@ -120,5 +120,5 @@ ALTER TABLE `%TABLE_PREFIX%ticket`
 
 -- Finished with patch
 UPDATE `%TABLE_PREFIX%config`
-    SET `value` = '17f0cc96b366a747113622fa4780f9bc'
+    SET `value` = '61c9d5d71093d3595b3d41855386a905'
     WHERE `key` = 'schema_signature' AND `namespace` = 'core';
diff --git a/include/upgrader/streams/core/dad45ca2-17f0cc96.task.php b/include/upgrader/streams/core/dad45ca2-61c9d5d7.task.php
similarity index 100%
rename from include/upgrader/streams/core/dad45ca2-17f0cc96.task.php
rename to include/upgrader/streams/core/dad45ca2-61c9d5d7.task.php
diff --git a/setup/inc/streams/core/install-mysql.sql b/setup/inc/streams/core/install-mysql.sql
index e5859e815..c5610347c 100644
--- a/setup/inc/streams/core/install-mysql.sql
+++ b/setup/inc/streams/core/install-mysql.sql
@@ -211,7 +211,7 @@ CREATE TABLE `%TABLE_PREFIX%form_entry` (
     `created` datetime NOT NULL,
     `updated` datetime NOT NULL,
     PRIMARY KEY (`id`),
-    KEY `entry_lookup` (`object_id`, `object_type`)
+    KEY `entry_lookup` (`object_type`, `object_id`)
 ) DEFAULT CHARSET=utf8;
 
 DROP TABLE IF EXISTS `%TABLE_PREFIX%form_entry_values`;
-- 
GitLab