pilerget fixes

This commit is contained in:
SJ
2011-11-30 23:42:15 +01:00
parent b806c3548f
commit 8e9f3d066a
6 changed files with 211 additions and 80 deletions

View File

@ -25,7 +25,7 @@ drop table if exists `metadata`;
create table `metadata` (
`id` bigint unsigned not null auto_increment,
`from` char(255) not null,
`to` char(255) default null,
`to` text(2048) character set 'latin1' not null,
`subject` text(512) default null,
`arrived` int not null,
`sent` int not null,
@ -37,7 +37,7 @@ create table `metadata` (
`message_id` char(128) character set 'latin1' not null,
`digest` char(64) not null,
`bodydigest` char(64) not null,
primary key (`id`), unique(`to`,`message_id`)
primary key (`id`), unique(`message_id`)
) Engine=InnoDB;
create index metadata_idx on metadata(`piler_id`);
@ -83,3 +83,13 @@ create table if not exists `counter` (
insert into `counter` values(0, 0, 0);
drop table if exists `search`;
create table `search` (
`email` char(128) not null,
`ts` int default 0,
`term` text(512) not null
) Engine=InnoDB;
create index `search_idx` on `search`(`email`);