diff options
-rw-r--r-- | SQL/mysql.update.sql | 2 | ||||
-rw-r--r-- | SQL/postgres.update.sql | 1 | ||||
-rw-r--r-- | SQL/sqlite.update.sql | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index f0cac2449..7091f30a0 100644 --- a/SQL/mysql.update.sql +++ b/SQL/mysql.update.sql @@ -49,3 +49,5 @@ ALTER TABLE `users` ALTER TABLE `messages` ADD INDEX `index_index` (`user_id`, `cache_key`, `idx`); + +TRUNCATE `messages`; diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql index 6aba9b6a1..fe88a6dcc 100644 --- a/SQL/postgres.update.sql +++ b/SQL/postgres.update.sql @@ -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; diff --git a/SQL/sqlite.update.sql b/SQL/sqlite.update.sql index 5c68cbb36..4b1b10b7f 100644 --- a/SQL/sqlite.update.sql +++ b/SQL/sqlite.update.sql @@ -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; |