From 06bc6fb15cbc34c320f60b35fa4408c2678c0234 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sat, 3 Mar 2018 10:54:37 +0100 Subject: [PATCH] db: fixing database schema Signed-off-by: Janos SUTO --- util/db-mysql.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/db-mysql.sql b/util/db-mysql.sql index f8fafdbf..9de729d2 100644 --- a/util/db-mysql.sql +++ b/util/db-mysql.sql @@ -8,7 +8,7 @@ create table if not exists `sph_counter` ( create table if not exists `sph_index` ( `id` bigint not null, - `from` char(255) default null, + `from` tinyblob default null, `to` text(8192) default null, `fromdomain` char(255) default null, `todomain` text(512) default null, @@ -27,7 +27,7 @@ create table if not exists `sph_index` ( create table if not exists `metadata` ( `id` bigint unsigned not null auto_increment, - `from` varchar(128) not null, + `from` varchar(255) not null, `fromdomain` varchar(64) not null, `subject` blob(512) default null, `spam` tinyint(1) default 0,