|
|
@ -12,7 +12,7 @@ CREATE TABLE `session` (
|
|
|
|
`vars` mediumtext NOT NULL,
|
|
|
|
`vars` mediumtext NOT NULL,
|
|
|
|
PRIMARY KEY(`sess_id`),
|
|
|
|
PRIMARY KEY(`sess_id`),
|
|
|
|
INDEX `changed_index` (`changed`)
|
|
|
|
INDEX `changed_index` (`changed`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `users`
|
|
|
|
-- Table structure for table `users`
|
|
|
@ -29,7 +29,7 @@ CREATE TABLE `users` (
|
|
|
|
`preferences` longtext,
|
|
|
|
`preferences` longtext,
|
|
|
|
PRIMARY KEY(`user_id`),
|
|
|
|
PRIMARY KEY(`user_id`),
|
|
|
|
UNIQUE `username` (`username`, `mail_host`)
|
|
|
|
UNIQUE `username` (`username`, `mail_host`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `cache`
|
|
|
|
-- Table structure for table `cache`
|
|
|
@ -43,7 +43,7 @@ CREATE TABLE `cache` (
|
|
|
|
CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`)
|
|
|
|
CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`)
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
INDEX `expires_index` (`expires`)
|
|
|
|
INDEX `expires_index` (`expires`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `cache_shared`
|
|
|
|
-- Table structure for table `cache_shared`
|
|
|
@ -54,7 +54,7 @@ CREATE TABLE `cache_shared` (
|
|
|
|
`data` longtext NOT NULL,
|
|
|
|
`data` longtext NOT NULL,
|
|
|
|
PRIMARY KEY (`cache_key`),
|
|
|
|
PRIMARY KEY (`cache_key`),
|
|
|
|
INDEX `expires_index` (`expires`)
|
|
|
|
INDEX `expires_index` (`expires`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `cache_index`
|
|
|
|
-- Table structure for table `cache_index`
|
|
|
@ -69,7 +69,7 @@ CREATE TABLE `cache_index` (
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
INDEX `expires_index` (`expires`),
|
|
|
|
INDEX `expires_index` (`expires`),
|
|
|
|
PRIMARY KEY (`user_id`, `mailbox`)
|
|
|
|
PRIMARY KEY (`user_id`, `mailbox`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `cache_thread`
|
|
|
|
-- Table structure for table `cache_thread`
|
|
|
@ -83,7 +83,7 @@ CREATE TABLE `cache_thread` (
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
INDEX `expires_index` (`expires`),
|
|
|
|
INDEX `expires_index` (`expires`),
|
|
|
|
PRIMARY KEY (`user_id`, `mailbox`)
|
|
|
|
PRIMARY KEY (`user_id`, `mailbox`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `cache_messages`
|
|
|
|
-- Table structure for table `cache_messages`
|
|
|
@ -99,7 +99,7 @@ CREATE TABLE `cache_messages` (
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
INDEX `expires_index` (`expires`),
|
|
|
|
INDEX `expires_index` (`expires`),
|
|
|
|
PRIMARY KEY (`user_id`, `mailbox`, `uid`)
|
|
|
|
PRIMARY KEY (`user_id`, `mailbox`, `uid`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `contacts`
|
|
|
|
-- Table structure for table `contacts`
|
|
|
@ -119,7 +119,7 @@ CREATE TABLE `contacts` (
|
|
|
|
CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`)
|
|
|
|
CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`)
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
INDEX `user_contacts_index` (`user_id`,`del`)
|
|
|
|
INDEX `user_contacts_index` (`user_id`,`del`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `contactgroups`
|
|
|
|
-- Table structure for table `contactgroups`
|
|
|
|
|
|
|
|
|
|
|
@ -133,7 +133,7 @@ CREATE TABLE `contactgroups` (
|
|
|
|
CONSTRAINT `user_id_fk_contactgroups` FOREIGN KEY (`user_id`)
|
|
|
|
CONSTRAINT `user_id_fk_contactgroups` FOREIGN KEY (`user_id`)
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
INDEX `contactgroups_user_index` (`user_id`,`del`)
|
|
|
|
INDEX `contactgroups_user_index` (`user_id`,`del`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `contactgroupmembers` (
|
|
|
|
CREATE TABLE `contactgroupmembers` (
|
|
|
|
`contactgroup_id` int(10) UNSIGNED NOT NULL,
|
|
|
|
`contactgroup_id` int(10) UNSIGNED NOT NULL,
|
|
|
@ -168,7 +168,7 @@ CREATE TABLE `identities` (
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
INDEX `user_identities_index` (`user_id`, `del`),
|
|
|
|
INDEX `user_identities_index` (`user_id`, `del`),
|
|
|
|
INDEX `email_identities_index` (`email`, `del`)
|
|
|
|
INDEX `email_identities_index` (`email`, `del`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `dictionary`
|
|
|
|
-- Table structure for table `dictionary`
|
|
|
@ -181,7 +181,7 @@ CREATE TABLE `dictionary` (
|
|
|
|
CONSTRAINT `user_id_fk_dictionary` FOREIGN KEY (`user_id`)
|
|
|
|
CONSTRAINT `user_id_fk_dictionary` FOREIGN KEY (`user_id`)
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
UNIQUE `uniqueness` (`user_id`, `language`)
|
|
|
|
UNIQUE `uniqueness` (`user_id`, `language`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `searches`
|
|
|
|
-- Table structure for table `searches`
|
|
|
@ -196,7 +196,7 @@ CREATE TABLE `searches` (
|
|
|
|
CONSTRAINT `user_id_fk_searches` FOREIGN KEY (`user_id`)
|
|
|
|
CONSTRAINT `user_id_fk_searches` FOREIGN KEY (`user_id`)
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
UNIQUE `uniqueness` (`user_id`, `type`, `name`)
|
|
|
|
UNIQUE `uniqueness` (`user_id`, `type`, `name`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `filestore`
|
|
|
|
-- Table structure for table `filestore`
|
|
|
|
|
|
|
|
|
|
|
@ -211,7 +211,7 @@ CREATE TABLE `filestore` (
|
|
|
|
CONSTRAINT `user_id_fk_filestore` FOREIGN KEY (`user_id`)
|
|
|
|
CONSTRAINT `user_id_fk_filestore` FOREIGN KEY (`user_id`)
|
|
|
|
REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
UNIQUE `uniqueness` (`user_id`, `context`, `filename`)
|
|
|
|
UNIQUE `uniqueness` (`user_id`, `context`, `filename`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
-- Table structure for table `system`
|
|
|
|
-- Table structure for table `system`
|
|
|
|
|
|
|
|
|
|
|
@ -219,8 +219,8 @@ CREATE TABLE `system` (
|
|
|
|
`name` varchar(64) NOT NULL,
|
|
|
|
`name` varchar(64) NOT NULL,
|
|
|
|
`value` mediumtext,
|
|
|
|
`value` mediumtext,
|
|
|
|
PRIMARY KEY(`name`)
|
|
|
|
PRIMARY KEY(`name`)
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
|
|
|
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
|
|
|
|
|
|
|
|
|
|
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=1 */;
|
|
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=1 */;
|
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO `system` (`name`, `value`) VALUES ('roundcube-version', '2020020100');
|
|
|
|
INSERT INTO `system` (`name`, `value`) VALUES ('roundcube-version', '2020020101');
|
|
|
|