sql schema fixes

This commit is contained in:
SJ 2012-02-12 09:18:07 +01:00
parent fa843306de
commit 2a9376222c

View File

@ -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;