summaryrefslogtreecommitdiff
path: root/SQL
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-04-03 10:26:32 +0000
committeralecpl <alec@alec.pl>2008-04-03 10:26:32 +0000
commitedc63c2e3845c1a7ec21898bb0636daddd124a27 (patch)
tree4cbcbf1a506bab718f75a5efba395f507ff1fdf5 /SQL
parentfdccdb4afee82fe8ac4d2853ab806f4a7f90d13d (diff)
fix: there's no ALTER TABLE ... ADD INDEX in postgresql
Diffstat (limited to 'SQL')
-rw-r--r--SQL/postgres.initial.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/SQL/postgres.initial.sql b/SQL/postgres.initial.sql
index e8513af73..c7428369f 100644
--- a/SQL/postgres.initial.sql
+++ b/SQL/postgres.initial.sql
@@ -131,7 +131,7 @@ CREATE TABLE "cache" (
data text NOT NULL
);
-ALTER TABLE "cache" ADD INDEX (user_id, cache_key);
+CREATE INDEX cache_user_id_idx ON "cache" (user_id, cache_key);
--
-- Sequence "message_ids"