summaryrefslogtreecommitdiff
path: root/SQL/mysql.update.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-22 18:06:13 +0000
committeralecpl <alec@alec.pl>2008-11-22 18:06:13 +0000
commitdcf780a6bd5065ffb0dcc76233b1e5f601e258d2 (patch)
treef1e127b3cf04f18cf3776af057edd4fa57ec36e1 /SQL/mysql.update.sql
parent3e48d2eee1d2af42aa777fd5e461fa570762732e (diff)
- fix r2076: removed cache.session_id column, removed DELETEs from cache in session_gc
- trust DB server's time when "touching" cache and messages tables
Diffstat (limited to 'SQL/mysql.update.sql')
-rw-r--r--SQL/mysql.update.sql7
1 files changed, 2 insertions, 5 deletions
diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql
index a45ace1fd..1e8979d87 100644
--- a/SQL/mysql.update.sql
+++ b/SQL/mysql.update.sql
@@ -34,10 +34,7 @@ ALTER TABLE `messages`
-- Updates from version 0.2-beta (InnoDB only)
ALTER TABLE `cache`
- ADD CONSTRAINT `session_id_fk_cache` FOREIGN KEY (`session_id`)
- REFERENCES `session`(`sess_id`)
- ON DELETE CASCADE
- ON UPDATE CASCADE;
-
+ DROP `session_id`;
+
ALTER TABLE `session`
ADD INDEX `changed_index` (`changed`);