mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 21:51:59 +01:00
Tidying db-mysql.sql
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
783a653e37
commit
ef9c0f0a91
@ -49,12 +49,12 @@ create table if not exists `metadata` (
|
|||||||
) Engine=InnoDB;
|
) Engine=InnoDB;
|
||||||
|
|
||||||
create index metadata_idx on metadata(`piler_id`);
|
create index metadata_idx on metadata(`piler_id`);
|
||||||
create index metadata_idx2 on metadata(`message_id`);
|
create index metadata_idx2 on metadata(`message_id`);
|
||||||
create index metadata_idx3 on metadata(`reference`);
|
create index metadata_idx3 on metadata(`reference`);
|
||||||
create index metadata_idx4 on metadata(`bodydigest`);
|
create index metadata_idx4 on metadata(`bodydigest`);
|
||||||
create index metadata_idx5 on metadata(`deleted`);
|
create index metadata_idx5 on metadata(`deleted`);
|
||||||
create index metadata_idx6 on metadata(`arrived`);
|
create index metadata_idx6 on metadata(`arrived`);
|
||||||
create index metadata_idx7 on metadata(`retained`);
|
create index metadata_idx7 on metadata(`retained`);
|
||||||
create index metadata_idx8 on metadata(`fromdomain`);
|
create index metadata_idx8 on metadata(`fromdomain`);
|
||||||
create index metadata_idx9 on metadata(`from`);
|
create index metadata_idx9 on metadata(`from`);
|
||||||
create index metadata_idx10 on metadata(`sent`);
|
create index metadata_idx10 on metadata(`sent`);
|
||||||
@ -124,7 +124,7 @@ create table if not exists `archiving_rule` (
|
|||||||
`days` int default 0,
|
`days` int default 0,
|
||||||
`folder_id` int default 0,
|
`folder_id` int default 0,
|
||||||
primary key (`id`),
|
primary key (`id`),
|
||||||
unique(`from`,`to`,`subject`,`body`,`_size`,`size`,`attachment_name`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`)
|
unique(`from`,`to`,`subject`,`body`,`_size`,`size`,`attachment_name`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`)
|
||||||
) ENGINE=InnoDB;
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user