2015-03-11 12:54:31 +01:00
|
|
|
-- 2015.03.10
|
|
|
|
|
|
|
|
alter table archiving_rule add column `body` varchar(128) default null;
|
|
|
|
alter table retention_rule add column `body` varchar(128) default null;
|
|
|
|
|
2015-03-18 15:23:21 +01:00
|
|
|
--drop index entry on archiving_rule;
|
|
|
|
--drop index entry on retention_rule;
|
|
|
|
|
2015-03-11 12:54:31 +01:00
|
|
|
create unique index `entry` on archiving_rule (`domain`,`from`,`to`,`subject`,`body`,`_size`,`size`,`attachment_name`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`);
|
|
|
|
create unique index `entry` on retention_rule (`domain`,`from`,`to`,`subject`,`body`,`_size`,`size`,`attachment_name`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`);
|
|
|
|
|
2015-03-29 16:27:44 +02:00
|
|
|
-- 2015.03.29
|
|
|
|
|
2015-03-29 09:59:41 +02:00
|
|
|
create index metadata_idx10 on metadata(`from`);
|
2015-03-11 12:54:31 +01:00
|
|
|
|
2015-03-29 16:27:44 +02:00
|
|
|
create table if not exists `legal_hold` (
|
2015-04-05 13:18:35 +02:00
|
|
|
email varchar(128) unique not null
|
2015-03-29 16:27:44 +02:00
|
|
|
) Engine=InnoDB;
|
|
|
|
|
2015-04-22 12:26:04 +02:00
|
|
|
create table if not exists `timestamp` (
|
|
|
|
`id` bigint unsigned not null auto_increment,
|
|
|
|
`start_id` bigint default 0,
|
|
|
|
`stop_id` bigint default 0,
|
|
|
|
`hash_value` char(40),
|
|
|
|
`count` int default 0,
|
|
|
|
`response_time` bigint default 0,
|
|
|
|
`response_string` blob not null,
|
|
|
|
primary key (`id`)
|
|
|
|
) Engine=InnoDB;
|
|
|
|
|
2015-03-29 16:27:44 +02:00
|
|
|
|