summaryrefslogtreecommitdiff
path: root/roundcubemail/SQL/postgres.update.sql
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-12 17:46:31 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-12 17:46:31 +0000
commit082c17284c9d2495a86905de10c32b860fb0ad38 (patch)
tree90ceb1dcc0990ff3012bbd5b544ff0bb208e77e7 /roundcubemail/SQL/postgres.update.sql
parent5247ef894f006a2d251d0cbefe5cc898e7acbb74 (diff)
#1485125: added index on messages.created
git-svn-id: https://svn.roundcube.net/trunk@1522 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/SQL/postgres.update.sql')
-rw-r--r--roundcubemail/SQL/postgres.update.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/SQL/postgres.update.sql b/roundcubemail/SQL/postgres.update.sql
index e0afa61ca..dfc282b4a 100644
--- a/roundcubemail/SQL/postgres.update.sql
+++ b/roundcubemail/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);