Changeset 8248e4a6 in github
- Timestamp:
- Feb 6, 2010 7:34:16 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 5cec0c6
- Parents:
- e7b9591
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
SQL/mysql.initial.sql (modified) (4 diffs)
-
SQL/mysql.update.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rb620493a r8248e4a6 2 2 =========================== 3 3 4 - Add workaround for MySQL bug [http://bugs.mysql.com/bug.php?id=46293] (#1486474) 4 5 - Fix quoted text wrapping when replying to an HTML email in plain text (#1484141) 5 6 - Fix handling of extended mailto links (with params) (#1486354) -
SQL/mysql.initial.sql
r23b7656 r8248e4a6 55 55 INDEX `created_index` (`created`), 56 56 INDEX `index_index` (`user_id`, `cache_key`, `idx`), 57 UNIQUE `uniqueness` (`user_id`, `cache_key`, `uid`), 58 CONSTRAINT `user_id_fk_messages` FOREIGN KEY (`user_id`) 59 REFERENCES `users`(`user_id`) 60 /*!40008 61 ON DELETE CASCADE 62 ON UPDATE CASCADE */ 57 UNIQUE `uniqueness` (`user_id`, `cache_key`, `uid`) 63 58 ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */; 59 60 /* create foreign keys outside of create table, because of MySQL bug #46293 */ 61 ALTER TABLE `messages` ADD CONSTRAINT `user_id_fk_messages` FOREIGN KEY (`user_id`) 62 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 64 63 65 64 … … 74 73 PRIMARY KEY(`cache_id`), 75 74 INDEX `created_index` (`created`), 76 INDEX `user_cache_index` (`user_id`,`cache_key`), 77 CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`) 78 REFERENCES `users`(`user_id`) 79 /*!40008 80 ON DELETE CASCADE 81 ON UPDATE CASCADE */ 75 INDEX `user_cache_index` (`user_id`,`cache_key`) 82 76 ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */; 77 78 /* create foreign keys outside of create table, because of MySQL bug #46293 */ 79 ALTER TABLE `cache` ADD CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`) 80 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 83 81 84 82 … … 96 94 `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0', 97 95 PRIMARY KEY(`contact_id`), 98 INDEX `user_contacts_index` (`user_id`,`email`), 99 CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`) 100 REFERENCES `users`(`user_id`) 101 /*!40008 102 ON DELETE CASCADE 103 ON UPDATE CASCADE */ 96 INDEX `user_contacts_index` (`user_id`,`email`) 104 97 ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */; 98 99 /* create foreign keys outside of create table, because of MySQL bug #46293 */ 100 ALTER TABLE `contacts` ADD CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`) 101 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 105 102 106 103 … … 119 116 `html_signature` tinyint(1) NOT NULL DEFAULT '0', 120 117 `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0', 121 PRIMARY KEY(`identity_id`), 122 CONSTRAINT `user_id_fk_identities` FOREIGN KEY (`user_id`) 123 REFERENCES `users`(`user_id`) 124 /*!40008 125 ON DELETE CASCADE 126 ON UPDATE CASCADE */ 118 PRIMARY KEY(`identity_id`) 127 119 ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */; 120 121 /* create foreign keys outside of create table, because of MySQL bug #46293 */ 122 ALTER TABLE `identities` ADD CONSTRAINT `user_id_fk_identities` FOREIGN KEY (`user_id`) 123 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 128 124 129 125 -
SQL/mysql.update.sql
rf47e2dc r8248e4a6 58 58 ALTER TABLE `contacts` 59 59 ADD INDEX `user_contacts_index` (`user_id`,`email`); 60 61 -- Updates from version 0.3.1 62 63 /* MySQL bug workaround: http://bugs.mysql.com/bug.php?id=46293 */ 64 /*!40014 SET FOREIGN_KEY_CHECKS=0; */ 65 66 ALTER TABLE `messages` DROP FOREIGN KEY `user_id_fk_messages`; 67 ALTER TABLE `cache` DROP FOREIGN KEY `user_id_fk_cache`; 68 ALTER TABLE `contacts` DROP FOREIGN KEY `user_id_fk_contacts`; 69 ALTER TABLE `identities` DROP FOREIGN KEY `user_id_fk_identities`; 70 71 ALTER TABLE `messages` ADD CONSTRAINT `user_id_fk_messages` FOREIGN KEY (`user_id`) 72 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 73 ALTER TABLE `cache` ADD CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`) 74 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 75 ALTER TABLE `contacts` ADD CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`) 76 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 77 ALTER TABLE `identities` ADD CONSTRAINT `user_id_fk_identities` FOREIGN KEY (`user_id`) 78 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 79 80 /*!40014 SET FOREIGN_KEY_CHECKS=1; */
Note: See TracChangeset
for help on using the changeset viewer.
