mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-31 14:35:41 +00:00
Back to utf8mb4...
This commit is contained in:
1 parent
1cad07dc5c
commit
98e803e6ef
4 files changed
+158
-152
No files matched your search
@@ -51,6 +51,12 @@ function init_db_schema() {
|
||||
$data = '';
|
||||
}
|
||||
}
|
||||
$stmt = $pdo->query("SHOW INDEX FROM sogo_acl WHERE KEY_NAME = 'sogo_acl_c_folder_id_idx'");
|
||||
$num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
|
||||
if ($num_results == 0) {
|
||||
$pdo->query("CREATE INDEX sogo_acl_c_folder_id_idx ON sogo_acl(c_folder_id)");
|
||||
$pdo->query("CREATE INDEX sogo_acl_c_uid_idx ON sogo_acl(c_uid)");
|
||||
}
|
||||
$_SESSION['return'] = array(
|
||||
'type' => 'success',
|
||||
'msg' => 'Database initialization completed.'
|
||||
|
||||
Reference in new issue
Block a user