mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 06:00:13 +01:00
sql schema fixes
This commit is contained in:
parent
fa843306de
commit
2a9376222c
@ -105,12 +105,12 @@ create table if not exists `tag` (
|
||||
drop table if exists `archiving_rule`;
|
||||
create table if not exists `archiving_rule` (
|
||||
`id` bigint unsigned not null auto_increment,
|
||||
`from` char(128) default null,
|
||||
`to` char(255) default null,
|
||||
`subject` char(255) default null,
|
||||
`from` char(128) character set 'latin1' default null,
|
||||
`to` char(255) character set 'latin1' default null,
|
||||
`subject` char(255) character set 'latin1' default null,
|
||||
`_size` char(2) default null,
|
||||
`size` int default 0,
|
||||
`attachment_type` char(128) default null,
|
||||
`attachment_type` char(128) character set 'latin1' default null,
|
||||
`_attachment_size` char(2) default null,
|
||||
`attachment_size` int default 0,
|
||||
primary key (`id`),
|
||||
@ -118,25 +118,12 @@ create table if not exists `archiving_rule` (
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
drop table if exists `retention_rule`;
|
||||
create table if not exists `retention_rule` (
|
||||
`id` bigint unsigned not null auto_increment,
|
||||
|
||||
`subject` char(255) default null,
|
||||
|
||||
`days` int not null,
|
||||
|
||||
primary key (`id`)
|
||||
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
drop table if exists `counter`;
|
||||
create table if not exists `counter` (
|
||||
`rcvd` bigint unsigned default 0,
|
||||
`virus` bigint unsigned default 0,
|
||||
`duplicate` bigint unsigned default 0,
|
||||
`ignore` bigint unsigned default 0
|
||||
`ignore` bigint unsigned default 0,
|
||||
`size` bigint unsigned default 0
|
||||
) Engine=InnoDB;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user