From edc63c2e3845c1a7ec21898bb0636daddd124a27 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 03 Apr 2008 06:26:32 -0400
Subject: [PATCH] fix: there's no ALTER TABLE ... ADD INDEX in postgresql

---
 SQL/postgres.initial.sql |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/SQL/postgres.initial.sql b/SQL/postgres.initial.sql
index e8513af..c742836 100644
--- a/SQL/postgres.initial.sql
+++ b/SQL/postgres.initial.sql
@@ -131,7 +131,7 @@
     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"

--
Gitblit v1.9.1