db: schema fix for metadata.message_id and attachment.name

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-01-23 20:01:25 +01:00
parent 06b5954070
commit 7e2fdcaae2

View File

@ -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,