diff --git a/util/db-mysql.sql b/util/db-mysql.sql index e42890d1..94083a22 100644 --- a/util/db-mysql.sql +++ b/util/db-mysql.sql @@ -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;