mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 06:40:12 +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`;
|
drop table if exists `archiving_rule`;
|
||||||
create table if not exists `archiving_rule` (
|
create table if not exists `archiving_rule` (
|
||||||
`id` bigint unsigned not null auto_increment,
|
`id` bigint unsigned not null auto_increment,
|
||||||
`from` char(128) default null,
|
`from` char(128) character set 'latin1' default null,
|
||||||
`to` char(255) default null,
|
`to` char(255) character set 'latin1' default null,
|
||||||
`subject` char(255) default null,
|
`subject` char(255) character set 'latin1' default null,
|
||||||
`_size` char(2) default null,
|
`_size` char(2) default null,
|
||||||
`size` int default 0,
|
`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` char(2) default null,
|
||||||
`attachment_size` int default 0,
|
`attachment_size` int default 0,
|
||||||
primary key (`id`),
|
primary key (`id`),
|
||||||
@ -118,25 +118,12 @@ create table if not exists `archiving_rule` (
|
|||||||
) ENGINE=InnoDB;
|
) 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`;
|
drop table if exists `counter`;
|
||||||
create table if not exists `counter` (
|
create table if not exists `counter` (
|
||||||
`rcvd` bigint unsigned default 0,
|
`rcvd` bigint unsigned default 0,
|
||||||
`virus` bigint unsigned default 0,
|
`virus` bigint unsigned default 0,
|
||||||
`duplicate` bigint unsigned default 0,
|
`duplicate` bigint unsigned default 0,
|
||||||
`ignore` bigint unsigned default 0
|
`ignore` bigint unsigned default 0,
|
||||||
`size` bigint unsigned default 0
|
`size` bigint unsigned default 0
|
||||||
) Engine=InnoDB;
|
) Engine=InnoDB;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user