Permalink
Browse files

fix: there's no ALTER TABLE ... ADD INDEX in postgresql

  • Loading branch information...
1 parent fdccdb4 commit edc63c2e3845c1a7ec21898bb0636daddd124a27 @alecpl alecpl committed Apr 3, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 SQL/postgres.initial.sql
View
2 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"

0 comments on commit edc63c2

Please sign in to comment.