mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
added domainname based retention support
This commit is contained in:
@ -105,7 +105,7 @@ create table if not exists `tag` (
|
||||
|
||||
create table if not exists `archiving_rule` (
|
||||
`id` bigint unsigned not null auto_increment,
|
||||
`domain` varchar(255) default null,
|
||||
`domain` varchar(128) default null,
|
||||
`from` char(128) default null,
|
||||
`to` char(255) default null,
|
||||
`subject` char(255) default null,
|
||||
@ -123,7 +123,7 @@ create table if not exists `archiving_rule` (
|
||||
|
||||
create table if not exists `retention_rule` (
|
||||
`id` bigint unsigned not null auto_increment,
|
||||
`domain` varchar(255) default null,
|
||||
`domain` varchar(128) default null,
|
||||
`from` char(128) default null,
|
||||
`to` char(255) default null,
|
||||
`subject` char(255) default null,
|
||||
@ -135,7 +135,7 @@ create table if not exists `retention_rule` (
|
||||
`spam` tinyint(1) default -1,
|
||||
`days` int default 0,
|
||||
primary key (`id`),
|
||||
unique(`from`,`to`,`subject`,`_size`,`size`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`)
|
||||
unique (`domain`,`from`,`to`,`subject`,`_size`,`size`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
|
@ -7,6 +7,8 @@ create index `audit_idx5` on `audit`(`domain`);
|
||||
alter table archiving_rule add column domain varchar(255) default null;
|
||||
alter table retention_rule add column domain varchar(255) default null;
|
||||
|
||||
alter table retention_rule drop index `from`;
|
||||
create unique index `entry` on retention_rule (`domain`,`from`,`to`,`subject`,`_size`,`size`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`);
|
||||
|
||||
create table if not exists `ldap` (
|
||||
`id` int not null auto_increment primary key,
|
||||
|
Reference in New Issue
Block a user