From 7e2fdcaae2b4eb6baa46e118247db5ec272fe779 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Tue, 23 Jan 2018 20:01:25 +0100 Subject: [PATCH] db: schema fix for metadata.message_id and attachment.name 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 241b21b8..f8fafdbf 100644 --- a/util/db-mysql.sql +++ b/util/db-mysql.sql @@ -40,7 +40,7 @@ create table if not exists `metadata` ( `direction` int default 0, `attachments` int default 0, `piler_id` char(36) not null, - `message_id` varchar(128) not null, + `message_id` varchar(255) not null, `reference` char(64) not null, `digest` char(64) not null, `bodydigest` char(64) not null, @@ -80,7 +80,7 @@ create table if not exists `attachment` ( `id` bigint unsigned not null auto_increment, `piler_id` char(36) not null, `attachment_id` int not null, - `name` varchar(128) default null, + `name` tinyblob default null, `type` varchar(128) default null, `sig` char(64) not null, `size` int default 0,