diff --git a/util/db-mysql.sql b/util/db-mysql.sql index 9482b82..7f35211 100644 --- a/util/db-mysql.sql +++ b/util/db-mysql.sql @@ -240,8 +240,8 @@ create table if not exists `remote` ( `remotedomain` char(64) not null primary key, `remotehost` char(64) not null, - `basedn` char(64) not null, - `binddn` char(64) not null, + `basedn` char(255) not null, + `binddn` char(255) not null, `sitedescription` char(64) default null ) ENGINE=InnoDB; diff --git a/util/db-upgrade-0.19-vs-0.20.sql b/util/db-upgrade-0.19-vs-0.20.sql index d197d42..6883c58 100644 --- a/util/db-upgrade-0.19-vs-0.20.sql +++ b/util/db-upgrade-0.19-vs-0.20.sql @@ -1,2 +1,4 @@ alter table `user` change column `password` `password` char(128) default null; +alter table `remote` change column `basedn` `basedn` char(255) not null; +alter table `remote` change column `binddn` `binddn` char(255) not null;