added domain information to index table

This commit is contained in:
SJ
2012-01-14 09:53:26 +01:00
parent c74ed7195a
commit 14b9d0fe86
7 changed files with 66 additions and 52 deletions

View File

@ -15,6 +15,8 @@ create table if not exists `sph_index` (
`id` bigint not null,
`from` char(255) default null,
`to` text(512) default null,
`fromdomain` char(255) default null,
`todomain` text(512) default null,
`subject` text(512) default null,
`arrived` int not null,
`sent` int not null,
@ -205,3 +207,17 @@ create table if not exists `domain` (
insert into `domain` (`domain`, `mapped`) values('local', 'local');
drop table if exists `audit`;
create table if not exists `audit` (
`id` bigint unsigned not null auto_increment,
`ts` int not null,
`email` char(128) not null,
`action` int not null,
`ipaddr` char(15) not null,
`meta_id` bigint unsigned not null,
`description` char(255) default null,
`vcode` char(64) default null,
primary key (`id`)
) ENGINE=InnoDB;