db: fixing database schema

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-03-03 10:54:37 +01:00
parent 6939b7fe45
commit 06bc6fb15c

View File

@ -8,7 +8,7 @@ create table if not exists `sph_counter` (
create table if not exists `sph_index` ( create table if not exists `sph_index` (
`id` bigint not null, `id` bigint not null,
`from` char(255) default null, `from` tinyblob default null,
`to` text(8192) default null, `to` text(8192) default null,
`fromdomain` char(255) default null, `fromdomain` char(255) default null,
`todomain` text(512) default null, `todomain` text(512) default null,
@ -27,7 +27,7 @@ create table if not exists `sph_index` (
create table if not exists `metadata` ( create table if not exists `metadata` (
`id` bigint unsigned not null auto_increment, `id` bigint unsigned not null auto_increment,
`from` varchar(128) not null, `from` varchar(255) not null,
`fromdomain` varchar(64) not null, `fromdomain` varchar(64) not null,
`subject` blob(512) default null, `subject` blob(512) default null,
`spam` tinyint(1) default 0, `spam` tinyint(1) default 0,