From c98f3b5d6e4c681b7e42ea71c32cd2ef1991b519 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 12 Jun 2008 17:46:31 +0000
Subject: #1485125: added index on messages.created

---
 SQL/mysql.initial.sql | 1 +
 1 file changed, 1 insertion(+)

(limited to 'SQL/mysql.initial.sql')

diff --git a/SQL/mysql.initial.sql b/SQL/mysql.initial.sql
index ec420734f..c71894257 100644
--- a/SQL/mysql.initial.sql
+++ b/SQL/mysql.initial.sql
@@ -119,6 +119,7 @@ CREATE TABLE `messages` (
   `headers` text NOT NULL,
   `structure` text,
   PRIMARY KEY (`message_id`),
+  INDEX `created_index` (`created`),
   UNIQUE `uniqueness` (`user_id`, `cache_key`, `uid`)
 );
 
-- 
cgit v1.2.3

