This commit is contained in:
SJ
2011-11-28 14:21:14 +01:00
parent 0f5ae4fb2d
commit b806c3548f
9 changed files with 131 additions and 98 deletions

View File

@ -15,12 +15,12 @@ create table `sph_index` (
`sent` int not null,
`body` text,
`size` int default '0',
`attachments` int default 0,
`piler_id` char(36) not null,
`header_id` char(16) default null,
`body_id` char(16) default null,
primary key (`id`)
) Engine=InnoDB;
drop table if exists `metadata`;
create table `metadata` (
`id` bigint unsigned not null auto_increment,
@ -49,7 +49,8 @@ create table `attachment` (
`id` bigint unsigned not null auto_increment,
`piler_id` char(36) not null,
`attachment_id` int not null,
`type` char(64) default null,
`name` char(64) default null,
`type` char(72) default null,
`sig` char(64) not null,
`size` int default 0,
`ptr` int default 0,