mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 03:27:03 +02:00
store the stored size as well
This commit is contained in:
@ -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` (
|
||||
|
@ -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`);
|
||||
|
Reference in New Issue
Block a user