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

release-0.6
alecpl 15 years ago
parent 9ab7bc6b16
commit 7fec6b2de7

@ -49,3 +49,5 @@ ALTER TABLE `users`
ALTER TABLE `messages`
ADD INDEX `index_index` (`user_id`, `cache_key`, `idx`);
TRUNCATE `messages`;

@ -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;

@ -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;

Loading…
Cancel
Save