Permalink
Browse files

- "TRUNCATE messages" is required to remove buggy cache entries

  • Loading branch information...
1 parent 9ab7bc6 commit 7fec6b2de7d827fd34785000c9cef7f5defa86f1 @alecpl alecpl committed Sep 13, 2009
Showing with 4 additions and 0 deletions.
  1. +2 −0 SQL/mysql.update.sql
  2. +1 −0 SQL/postgres.update.sql
  3. +1 −0 SQL/sqlite.update.sql
View
@@ -49,3 +49,5 @@ ALTER TABLE `users`
ALTER TABLE `messages`
ADD INDEX `index_index` (`user_id`, `cache_key`, `idx`);
+
+TRUNCATE `messages`;
View
@@ -40,3 +40,4 @@ ALTER TABLE messages ALTER del TYPE smallint;
-- Updates from version 0.3-stable
CREATE INDEX messages_index_idx ON messages (user_id, cache_key, idx);
+TRUNCATE messages;
View
@@ -40,3 +40,4 @@ CREATE INDEX ix_cache_created ON cache (created);
DROP INDEX ix_messages_user_cache_uid;
CREATE UNIQUE INDEX ix_messages_user_cache_uid ON messages (user_id,cache_key,uid);
CREATE INDEX ix_messages_index ON messages (user_id,cache_key,idx);
+TRUNCATE messages;

0 comments on commit 7fec6b2

Please sign in to comment.