[Web] Change alias to TEXT field

This commit is contained in:
André 2018-08-16 12:42:12 +02:00
parent f81dad17bf
commit 6498fb0b39

View File

@ -3,7 +3,7 @@ function init_db_schema() {
try { try {
global $pdo; global $pdo;
$db_version = "10082018_2019"; $db_version = "16082018_2019";
$stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
$num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
@ -76,7 +76,7 @@ function init_db_schema() {
"c_cn" => "VARCHAR(255)", "c_cn" => "VARCHAR(255)",
"mail" => "VARCHAR(255) NOT NULL", "mail" => "VARCHAR(255) NOT NULL",
// TODO -> use TEXT and check if SOGo login breaks on empty aliases // TODO -> use TEXT and check if SOGo login breaks on empty aliases
"aliases" => "VARCHAR(6144) NOT NULL DEFAULT ''", "aliases" => "TEXT NOT NULL",
"ad_aliases" => "VARCHAR(6144) NOT NULL DEFAULT ''", "ad_aliases" => "VARCHAR(6144) NOT NULL DEFAULT ''",
"home" => "VARCHAR(255)", "home" => "VARCHAR(255)",
"kind" => "VARCHAR(100) NOT NULL DEFAULT ''", "kind" => "VARCHAR(100) NOT NULL DEFAULT ''",