summaryrefslogtreecommitdiff
path: root/SQL/mysql/2008030300.sql
blob: 9a3d04847240958afeb7f2417654b1ce2be57294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Updates from version 0.1-stable

TRUNCATE TABLE `messages`;

ALTER TABLE `messages`
  DROP INDEX `idx`,
  DROP INDEX `uid`;

ALTER TABLE `cache`
  DROP INDEX `cache_key`,
  DROP INDEX `session_id`,
  ADD INDEX `user_cache_index` (`user_id`,`cache_key`);

ALTER TABLE `users`
    ADD INDEX `username_index` (`username`),
    ADD INDEX `alias_index` (`alias`);