Changeset 8248e4a6 in github


Ignore:
Timestamp:
Feb 6, 2010 7:34:16 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
5cec0c6
Parents:
e7b9591
Message:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rb620493a r8248e4a6  
    22=========================== 
    33 
     4- Add workaround for MySQL bug [http://bugs.mysql.com/bug.php?id=46293] (#1486474) 
    45- Fix quoted text wrapping when replying to an HTML email in plain text (#1484141) 
    56- Fix handling of extended mailto links (with params) (#1486354) 
  • SQL/mysql.initial.sql

    r23b7656 r8248e4a6  
    5555 INDEX `created_index` (`created`), 
    5656 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`) 
    6358) /*!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 */ 
     61ALTER TABLE `messages` ADD CONSTRAINT `user_id_fk_messages` FOREIGN KEY (`user_id`) 
     62 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 
    6463 
    6564 
     
    7473 PRIMARY KEY(`cache_id`), 
    7574 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`) 
    8276) /*!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 */ 
     79ALTER TABLE `cache` ADD CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`) 
     80 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 
    8381 
    8482 
     
    9694 `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0', 
    9795 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`) 
    10497) /*!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 */ 
     100ALTER TABLE `contacts` ADD CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`) 
     101 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 
    105102 
    106103 
     
    119116 `html_signature` tinyint(1) NOT NULL DEFAULT '0', 
    120117 `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`) 
    127119) /*!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 */ 
     122ALTER TABLE `identities` ADD CONSTRAINT `user_id_fk_identities` FOREIGN KEY (`user_id`) 
     123 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 
    128124 
    129125 
  • SQL/mysql.update.sql

    rf47e2dc r8248e4a6  
    5858ALTER TABLE `contacts` 
    5959    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 
     66ALTER TABLE `messages` DROP FOREIGN KEY `user_id_fk_messages`; 
     67ALTER TABLE `cache` DROP FOREIGN KEY `user_id_fk_cache`; 
     68ALTER TABLE `contacts` DROP FOREIGN KEY `user_id_fk_contacts`; 
     69ALTER TABLE `identities` DROP FOREIGN KEY `user_id_fk_identities`; 
     70 
     71ALTER TABLE `messages` ADD CONSTRAINT `user_id_fk_messages` FOREIGN KEY (`user_id`) 
     72 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 
     73ALTER TABLE `cache` ADD CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`) 
     74 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 
     75ALTER TABLE `contacts` ADD CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`) 
     76 REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */; 
     77ALTER 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.