mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
switch from utf8 to utf8mb4 on the database level
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
create database MYSQL_DATABASE character set 'utf8';
|
||||
create database MYSQL_DATABASE character set 'utf8mb4';
|
||||
grant all privileges on MYSQL_DATABASE.* to MYSQL_USERNAME@localhost identified by 'MYSQL_PASSWORD';
|
||||
flush privileges;
|
||||
|
||||
|
@ -12,10 +12,10 @@ create table if not exists `sph_index` (
|
||||
`to` text(8192) default null,
|
||||
`fromdomain` char(255) default null,
|
||||
`todomain` text(512) default null,
|
||||
`subject` text(512) default null,
|
||||
`subject` blob(512) default null,
|
||||
`arrived` int unsigned not null,
|
||||
`sent` int unsigned not null,
|
||||
`body` text,
|
||||
`body` mediumblob,
|
||||
`size` int default '0',
|
||||
`direction` int default 0,
|
||||
`folder` int default 0,
|
||||
@ -29,7 +29,7 @@ create table if not exists `metadata` (
|
||||
`id` bigint unsigned not null auto_increment,
|
||||
`from` varchar(128) not null,
|
||||
`fromdomain` varchar(64) not null,
|
||||
`subject` text(512) default null,
|
||||
`subject` blob(512) default null,
|
||||
`spam` tinyint(1) default 0,
|
||||
`arrived` int unsigned not null,
|
||||
`sent` int unsigned not null,
|
||||
@ -117,7 +117,7 @@ create table if not exists `archiving_rule` (
|
||||
`_size` char(2) default null,
|
||||
`size` int default 0,
|
||||
`attachment_name` varchar(128) default null,
|
||||
`attachment_type` varchar(128) default null,
|
||||
`attachment_type` varchar(64) default null,
|
||||
`_attachment_size` char(2) default null,
|
||||
`attachment_size` int default 0,
|
||||
`spam` tinyint(1) default -1,
|
||||
@ -130,15 +130,15 @@ create table if not exists `archiving_rule` (
|
||||
|
||||
create table if not exists `retention_rule` (
|
||||
`id` bigint unsigned not null auto_increment,
|
||||
`domain` varchar(128) default null,
|
||||
`from` varchar(128) default null,
|
||||
`to` varchar(128) default null,
|
||||
`domain` varchar(100) default null,
|
||||
`from` varchar(100) default null,
|
||||
`to` varchar(100) default null,
|
||||
`subject` varchar(128) default null,
|
||||
`body` varchar(128) default null,
|
||||
`_size` char(2) default null,
|
||||
`size` int default 0,
|
||||
`attachment_name` varchar(128) default null,
|
||||
`attachment_type` varchar(128) default null,
|
||||
`attachment_name` varchar(100) default null,
|
||||
`attachment_type` varchar(64) default null,
|
||||
`_attachment_size` char(2) default null,
|
||||
`attachment_size` int default 0,
|
||||
`spam` tinyint(1) default -1,
|
||||
@ -151,15 +151,15 @@ create table if not exists `retention_rule` (
|
||||
|
||||
create table if not exists `folder_rule` (
|
||||
`id` bigint unsigned not null auto_increment,
|
||||
`domain` varchar(128) default null,
|
||||
`from` varchar(128) default null,
|
||||
`to` varchar(128) default null,
|
||||
`domain` varchar(100) default null,
|
||||
`from` varchar(100) default null,
|
||||
`to` varchar(100) default null,
|
||||
`subject` varchar(128) default null,
|
||||
`body` varchar(128) default null,
|
||||
`_size` char(2) default null,
|
||||
`size` int default 0,
|
||||
`attachment_name` varchar(128) default null,
|
||||
`attachment_type` varchar(128) default null,
|
||||
`attachment_type` varchar(64) default null,
|
||||
`_attachment_size` char(2) default null,
|
||||
`attachment_size` int default 0,
|
||||
`spam` tinyint(1) default -1,
|
||||
|
Reference in New Issue
Block a user