summaryrefslogtreecommitdiff
path: root/SQL/postgres.update.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-06-12 17:46:31 +0000
committeralecpl <alec@alec.pl>2008-06-12 17:46:31 +0000
commitc98f3b5d6e4c681b7e42ea71c32cd2ef1991b519 (patch)
tree60b76c380431f8c2ef9143164fc1bd79a966dccd /SQL/postgres.update.sql
parentdea67436608e5256c7a328cae8cbf766b970298d (diff)
#1485125: added index on messages.created
Diffstat (limited to 'SQL/postgres.update.sql')
-rw-r--r--SQL/postgres.update.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql
index e0afa61ca..dfc282b4a 100644
--- a/SQL/postgres.update.sql
+++ b/SQL/postgres.update.sql
@@ -17,3 +17,7 @@ ALTER TABLE contacts DROP CONSTRAINT contacts_user_id_fkey;
ALTER TABLE contacts ADD FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE cache DROP CONSTRAINT cache_user_id_fkey;
ALTER TABLE cache ADD FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- Updates from version 0.2-alpha
+
+CREATE INDEX messages_created_idx ON messages (created);