diff options
author | alecpl <alec@alec.pl> | 2010-03-06 14:13:25 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-03-06 14:13:25 +0000 |
commit | 94fe9ca1a87b20ddeee55024986e95ca72097af6 (patch) | |
tree | c991134bf8f7cf1d98cf7230d7e67d3a23269f37 /SQL/mysql.update.sql | |
parent | 1163db99d45baa33894d70f53d93c3783c8e9d27 (diff) |
- re-fix (#1486474) + require MySQL 4.0.8 + add index/update in identities table
Diffstat (limited to 'SQL/mysql.update.sql')
-rw-r--r-- | SQL/mysql.update.sql | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index 495b600ed..8d86867ce 100644 --- a/SQL/mysql.update.sql +++ b/SQL/mysql.update.sql @@ -69,16 +69,18 @@ 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`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; + REFERENCES `users`(`user_id`); ALTER TABLE `cache` ADD CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`) - REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; + REFERENCES `users`(`user_id`); ALTER TABLE `contacts` ADD CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`) - REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; + REFERENCES `users`(`user_id`); ALTER TABLE `identities` ADD CONSTRAINT `user_id_fk_identities` FOREIGN KEY (`user_id`) - REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; + REFERENCES `users`(`user_id`); ALTER TABLE `contacts` ALTER `name` SET DEFAULT ''; ALTER TABLE `contacts` ALTER `firstname` SET DEFAULT ''; ALTER TABLE `contacts` ALTER `surname` SET DEFAULT ''; +ALTER TABLE `identities` INDEX `user_identities_index` (`user_id`, `del`); + /*!40014 SET FOREIGN_KEY_CHECKS=1 */; |