| | |
| | | -- Updates from version 0.3.1 |
| | | |
| | | /* MySQL bug workaround: http://bugs.mysql.com/bug.php?id=46293 */ |
| | | /*!40014 SET FOREIGN_KEY_CHECKS=0; */ |
| | | /*!40014 SET FOREIGN_KEY_CHECKS=0 */; |
| | | |
| | | ALTER TABLE `messages` DROP FOREIGN KEY `user_id_fk_messages`; |
| | | ALTER TABLE `cache` DROP FOREIGN KEY `user_id_fk_cache`; |
| | |
| | | ALTER TABLE `identities` ADD CONSTRAINT `user_id_fk_identities` FOREIGN KEY (`user_id`) |
| | | REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; |
| | | |
| | | /*!40014 SET FOREIGN_KEY_CHECKS=1; */ |
| | | ALTER TABLE `contacts` ALTER `name` SET DEFAULT ''; |
| | | ALTER TABLE `contacts` ALTER `firstname` SET DEFAULT ''; |
| | | ALTER TABLE `contacts` ALTER `surname` SET DEFAULT ''; |
| | | |
| | | /*!40014 SET FOREIGN_KEY_CHECKS=1 */; |