From b2b3ada3941027614a0862e4a2291f717a7511f3 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Wed, 30 Aug 2017 11:09:21 +0200 Subject: [PATCH] util: fixed database schema lengthes Signed-off-by: Janos SUTO --- util/db-mysql.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/db-mysql.sql b/util/db-mysql.sql index 2cd7143c..241b21b8 100644 --- a/util/db-mysql.sql +++ b/util/db-mysql.sql @@ -244,7 +244,7 @@ create table if not exists `email_groups` ( create table if not exists `group` ( `id` bigint unsigned not null auto_increment primary key, - `groupname` char(255) not null unique + `groupname` char(128) not null unique ) ENGINE=InnoDB; @@ -410,7 +410,7 @@ create table if not exists `ldap` ( create table if not exists `customer_settings` ( `id` int not null auto_increment primary key, - `domain` varchar(255) not null unique, + `domain` varchar(128) not null unique, `branding_text` varchar(255) default null, `branding_url` varchar(255) default null, `branding_logo` varchar(255) default null, @@ -421,10 +421,10 @@ create table if not exists `customer_settings` ( create table if not exists `online` ( - `username` varchar(255) not null, + `username` varchar(128) not null, `ts` int default 0, `last_activity` int default 0, - `ipaddr` varchar(255) default null, + `ipaddr` varchar(64) default null, unique(`username`,`ipaddr`) ) Engine=InnoDB;