store the stored size as well

This commit is contained in:
SJ
2014-05-05 15:26:42 +02:00
parent 8c12662ddc
commit 3bf589ab5c
5 changed files with 18 additions and 8 deletions

View File

@ -149,10 +149,11 @@ create table if not exists `counter` (
`virus` bigint unsigned default 0,
`duplicate` bigint unsigned default 0,
`ignore` bigint unsigned default 0,
`size` bigint unsigned default 0
`size` bigint unsigned default 0,
`stored_size` bigint unsigned default 0
) Engine=InnoDB;
insert into `counter` values(0, 0, 0, 0, 0);
insert into `counter` values(0, 0, 0, 0, 0, 0);
create table if not exists `option` (

View File

@ -29,6 +29,9 @@ create table if not exists `autosearch` (
) Engine=InnoDB;
alter table `counter` add column `stored_size` bigint unsigned default 0;
create unique index `entry` on archiving_rule (`domain`,`from`,`to`,`subject`,`_size`,`size`,`attachment_name`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`);
create unique index `entry` on retention_rule (`domain`,`from`,`to`,`subject`,`_size`,`size`,`attachment_name`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`);