diff options
| author | Nathan Kinkade <nkinkade@nkinka.de> | 2009-03-05 20:48:46 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nkinkade@nkinka.de> | 2009-03-11 12:51:51 +0000 |
| commit | 32ea464bdfe5f8a22f46bfac50dcdc26c36fc497 (patch) | |
| tree | 50b13882e43a778a9e9dcec19f18d18bc8bb1aa9 /roundcubemail/SQL | |
| parent | 8013cb2424ca6912419dc7df73a9b8b77da7bdb0 (diff) | |
Applied message threading patch from Chris January: http://www.atomice.com/blog/?p=33
Diffstat (limited to 'roundcubemail/SQL')
| -rw-r--r-- | roundcubemail/SQL/mysql.initial.sql | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/roundcubemail/SQL/mysql.initial.sql b/roundcubemail/SQL/mysql.initial.sql index 9815282f3..f06ecc842 100644 --- a/roundcubemail/SQL/mysql.initial.sql +++ b/roundcubemail/SQL/mysql.initial.sql @@ -65,6 +65,29 @@ CREATE TABLE `messages` ( ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */; +-- Table structure for table `threads` + +CREATE TABLE `threads` ( + `thread_id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, + `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0', + `mailbox` varchar(128) /*!40101 CHARACTER SET ascii COLLATE ascii_general_ci */ NOT NULL, + `idx` int(11) UNSIGNED NOT NULL DEFAULT '0', + `has_children` tinyint(1) NOT NULL DEFAULT '0', + `is_root` tinyint(1) NOT NULL DEFAULT '0', + `root` int(11) UNSIGNED NOT NULL DEFAULT '0', + `depth` int(4) UNSIGNED NOT NULL DEFAULT '0', + PRIMARY KEY(`thread_id`), + UNIQUE `uniqueness` (`user_id`, `mailbox`, `idx`), + INDEX `is_root_index` (`is_root`), + INDEX `root_index` (`root`), + CONSTRAINT `user_id_fk_threads` FOREIGN KEY (`user_id`) + REFERENCES `users`(`user_id`) + /*!40008 + ON DELETE CASCADE + ON UPDATE CASCADE */ +) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */; + + -- Table structure for table `cache` CREATE TABLE `cache` ( |
