mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 19:00:12 +01:00
fixed database schema
This commit is contained in:
parent
71b3ca9491
commit
e31cbb7a04
@ -46,8 +46,8 @@ create table if not exists `metadata` (
|
|||||||
`direction` int default 0,
|
`direction` int default 0,
|
||||||
`attachments` int default 0,
|
`attachments` int default 0,
|
||||||
`piler_id` char(36) not null,
|
`piler_id` char(36) not null,
|
||||||
`message_id` char(128) character set 'latin1' not null,
|
`message_id` char(128) not null,
|
||||||
`reference` char(64) character set 'latin1' not null,
|
`reference` char(64) not null,
|
||||||
`digest` char(64) not null,
|
`digest` char(64) not null,
|
||||||
`bodydigest` char(64) not null,
|
`bodydigest` char(64) not null,
|
||||||
`vcode` char(64) default null,
|
`vcode` char(64) default null,
|
||||||
@ -115,12 +115,12 @@ create table if not exists `tag` (
|
|||||||
drop table if exists `archiving_rule`;
|
drop table if exists `archiving_rule`;
|
||||||
create table if not exists `archiving_rule` (
|
create table if not exists `archiving_rule` (
|
||||||
`id` bigint unsigned not null auto_increment,
|
`id` bigint unsigned not null auto_increment,
|
||||||
`from` char(128) character set 'latin1' default null,
|
`from` char(128) default null,
|
||||||
`to` char(255) character set 'latin1' default null,
|
`to` char(255) default null,
|
||||||
`subject` char(255) character set 'latin1' default null,
|
`subject` char(255) default null,
|
||||||
`_size` char(2) default null,
|
`_size` char(2) default null,
|
||||||
`size` int default 0,
|
`size` int default 0,
|
||||||
`attachment_type` char(128) character set 'latin1' default null,
|
`attachment_type` char(128) default null,
|
||||||
`_attachment_size` char(2) default null,
|
`_attachment_size` char(2) default null,
|
||||||
`attachment_size` int default 0,
|
`attachment_size` int default 0,
|
||||||
`spam` tinyint(1) default -1,
|
`spam` tinyint(1) default -1,
|
||||||
@ -133,12 +133,12 @@ create table if not exists `archiving_rule` (
|
|||||||
drop table if exists `retention_rule`;
|
drop table if exists `retention_rule`;
|
||||||
create table if not exists `retention_rule` (
|
create table if not exists `retention_rule` (
|
||||||
`id` bigint unsigned not null auto_increment,
|
`id` bigint unsigned not null auto_increment,
|
||||||
`from` char(128) character set 'latin1' default null,
|
`from` char(128) default null,
|
||||||
`to` char(255) character set 'latin1' default null,
|
`to` char(255) default null,
|
||||||
`subject` char(255) character set 'latin1' default null,
|
`subject` char(255) default null,
|
||||||
`_size` char(2) default null,
|
`_size` char(2) default null,
|
||||||
`size` int default 0,
|
`size` int default 0,
|
||||||
`attachment_type` char(128) character set 'latin1' default null,
|
`attachment_type` char(128) default null,
|
||||||
`_attachment_size` char(2) default null,
|
`_attachment_size` char(2) default null,
|
||||||
`attachment_size` int default 0,
|
`attachment_size` int default 0,
|
||||||
`spam` tinyint(1) default -1,
|
`spam` tinyint(1) default -1,
|
||||||
|
Loading…
Reference in New Issue
Block a user