From 94f9230ef8ce29ed587215fe12b2c4e8bdca882b Mon Sep 17 00:00:00 2001
From: alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>
Date: Mon, 14 Jun 2010 18:56:52 +0000
Subject: - fix foreign keys defs unintentionally broken in r3333

git-svn-id: https://svn.roundcube.net/trunk@3751 208e9e7b-5314-0410-a742-e7e81cd9613c
---
 roundcubemail/SQL/mysql.update.sql | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'roundcubemail/SQL/mysql.update.sql')

diff --git a/roundcubemail/SQL/mysql.update.sql b/roundcubemail/SQL/mysql.update.sql
index 49811c1e9..fa9a016a8 100644
--- a/roundcubemail/SQL/mysql.update.sql
+++ b/roundcubemail/SQL/mysql.update.sql
@@ -69,13 +69,13 @@ ALTER TABLE `contacts` DROP FOREIGN KEY `user_id_fk_contacts`;
 ALTER TABLE `identities` DROP FOREIGN KEY `user_id_fk_identities`;
 
 ALTER TABLE `messages` ADD CONSTRAINT `user_id_fk_messages` FOREIGN KEY (`user_id`)
- REFERENCES `users`(`user_id`);
+ REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
 ALTER TABLE `cache` ADD CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`)
- REFERENCES `users`(`user_id`);
+ REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
 ALTER TABLE `contacts` ADD CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`)
- REFERENCES `users`(`user_id`);
+ REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
 ALTER TABLE `identities` ADD CONSTRAINT `user_id_fk_identities` FOREIGN KEY (`user_id`)
- REFERENCES `users`(`user_id`);
+ REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
 
 ALTER TABLE `contacts` ALTER `name` SET DEFAULT '';
 ALTER TABLE `contacts` ALTER `firstname` SET DEFAULT '';
-- 
cgit v1.2.3

