From 2a9376222c98f8abe271db0b2cd1528da83fbac1 Mon Sep 17 00:00:00 2001 From: SJ Date: Sun, 12 Feb 2012 09:18:07 +0100 Subject: [PATCH] sql schema fixes --- util/db-mysql.sql | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) 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;