summaryrefslogtreecommitdiff
path: root/SQL/mysql.update.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-21 14:33:58 +0000
committeralecpl <alec@alec.pl>2008-11-21 14:33:58 +0000
commitbe7d3b6918ff90757d10804ac914edb5a65f4828 (patch)
treeabc0e0ab2a4876a05692503d748f3370e8999aa2 /SQL/mysql.update.sql
parentbd0c2b0a341c5440c66f9b0e9d2ad2b869401f03 (diff)
- Fix 'cache' table cleanup on session destroy (#1485516)
Diffstat (limited to 'SQL/mysql.update.sql')
-rw-r--r--SQL/mysql.update.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql
index ae6fb7533..f88a6c4db 100644
--- a/SQL/mysql.update.sql
+++ b/SQL/mysql.update.sql
@@ -30,3 +30,11 @@ ALTER TABLE `identities`
ALTER TABLE `messages`
ADD INDEX `created_index` (`created`);
+
+-- 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;