- move TRUNCATE before CREATE INDEX (#1486362)
| | |
| | | |
| | | -- Updates from version 0.3-stable |
| | | |
| | | TRUNCATE `messages`; |
| | | |
| | | ALTER TABLE `messages` |
| | | ADD INDEX `index_index` (`user_id`, `cache_key`, `idx`); |
| | | |
| | | TRUNCATE `messages`; |
| | | |
| | | ALTER TABLE `session` |
| | | CHANGE `vars` `vars` MEDIUMTEXT NOT NULL; |
| | |
| | | |
| | | -- Updates from version 0.3-stable |
| | | |
| | | CREATE INDEX messages_index_idx ON messages (user_id, cache_key, idx); |
| | | TRUNCATE messages; |
| | | CREATE INDEX messages_index_idx ON messages (user_id, cache_key, idx); |
| | | DROP INDEX contacts_user_id_idx; |
| | | CREATE INDEX contacts_user_id_idx ON contacts (user_id, email); |
| | |
| | | |
| | | -- Updates from version 0.3-stable |
| | | |
| | | TRUNCATE messages; |
| | | 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; |
| | | DROP INDEX ix_contacts_user_id; |
| | | CREATE INDEX ix_contacts_user_id ON contacts(user_id, email); |