@@ -3,7 +3,7 @@ function init_db_schema() {
3
3
try {
4
4
global $ pdo ;
5
5
6
- $ db_version = "29072024_1000 " ;
6
+ $ db_version = "20112024_1105 " ;
7
7
8
8
$ stmt = $ pdo ->query ("SHOW TABLES LIKE 'versions' " );
9
9
$ num_results = count ($ stmt ->fetchAll (PDO ::FETCH_ASSOC ));
@@ -111,6 +111,10 @@ function init_db_schema() {
111
111
"c_name " => "VARCHAR(255) NOT NULL " ,
112
112
"c_password " => "VARCHAR(255) NOT NULL DEFAULT '' " ,
113
113
"c_cn " => "VARCHAR(255) " ,
114
+ "c_l " => "VARCHAR(255) " ,
115
+ "c_o " => "VARCHAR(255) " ,
116
+ "c_ou " => "VARCHAR(255) " ,
117
+ "c_telephonenumber " => "VARCHAR(255) " ,
114
118
"mail " => "VARCHAR(255) NOT NULL " ,
115
119
// TODO -> use TEXT and check if SOGo login breaks on empty aliases
116
120
"aliases " => "TEXT NOT NULL " ,
@@ -1004,7 +1008,7 @@ function init_db_schema() {
1004
1008
)
1005
1009
),
1006
1010
"attr " => "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC "
1007
- ),
1011
+ ),
1008
1012
"pushover " => array (
1009
1013
"cols " => array (
1010
1014
"username " => "VARCHAR(255) NOT NULL " ,
@@ -1388,7 +1392,7 @@ function init_db_schema() {
1388
1392
"key_size " => 2048 ,
1389
1393
"max_quota_for_domain " => 10240 * 1048576 ,
1390
1394
)
1391
- );
1395
+ );
1392
1396
$ default_mailbox_template = array (
1393
1397
"template " => "Default " ,
1394
1398
"type " => "mailbox " ,
@@ -1423,7 +1427,7 @@ function init_db_schema() {
1423
1427
"acl_quarantine_category " => 1 ,
1424
1428
"acl_app_passwds " => 1 ,
1425
1429
)
1426
- );
1430
+ );
1427
1431
$ stmt = $ pdo ->prepare ("SELECT id FROM `templates` WHERE `type` = :type AND `template` = :template " );
1428
1432
$ stmt ->execute (array (
1429
1433
":type " => "domain " ,
@@ -1437,8 +1441,8 @@ function init_db_schema() {
1437
1441
":type " => "domain " ,
1438
1442
":template " => $ default_domain_template ["template " ],
1439
1443
":attributes " => json_encode ($ default_domain_template ["attributes " ])
1440
- ));
1441
- }
1444
+ ));
1445
+ }
1442
1446
$ stmt = $ pdo ->prepare ("SELECT id FROM `templates` WHERE `type` = :type AND `template` = :template " );
1443
1447
$ stmt ->execute (array (
1444
1448
":type " => "mailbox " ,
@@ -1452,8 +1456,8 @@ function init_db_schema() {
1452
1456
":type " => "mailbox " ,
1453
1457
":template " => $ default_mailbox_template ["template " ],
1454
1458
":attributes " => json_encode ($ default_mailbox_template ["attributes " ])
1455
- ));
1456
- }
1459
+ ));
1460
+ }
1457
1461
1458
1462
if (php_sapi_name () == "cli " ) {
1459
1463
echo "DB initialization completed " . PHP_EOL ;
0 commit comments