issue 868 : Add new performerce indexes

This commit is contained in:
tczaude
2020-07-24 14:35:55 +02:00
parent 03bc94e69c
commit a5e6ef674f
3 changed files with 19 additions and 2 deletions

View File

@@ -705,7 +705,7 @@ opcache.interned_strings_buffer'),
('panel', 'customer_hide_options', ''),
('panel', 'is_configured', '0'),
('panel', 'version', '0.10.19'),
('panel', 'db_version', '202005150');
('panel', 'db_version', '202007240');
DROP TABLE IF EXISTS `panel_tasks`;

View File

@@ -649,3 +649,20 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.10.18')) {
showUpdateStep("Updating from 0.10.18 to 0.10.19", false);
\Froxlor\Froxlor::updateToVersion('0.10.19');
}
if (\Froxlor\Froxlor::isDatabaseVersion('202005150')) {
showUpdateStep("Add new performerce indexes", false);
Database::query("ALTER TABLE panel_customers ADD INDEX guid (guid);");
Database::query("ALTER TABLE panel_tasks ADD INDEX type (type);");
Database::query("ALTER TABLE mail_users ADD INDEX username (username);");
Database::query("ALTER TABLE mail_users ADD INDEX imap (imap);");
Database::query("ALTER TABLE mail_users ADD INDEX pop3 (pop3);");
Database::query("ALTER TABLE ftp_groups ADD INDEX gid (gid);");
Database::query("ALTER TABLE ftp_groups ADD INDEX members (members);");
lastStepStatus(0);
\Froxlor\Froxlor::updateToDbVersion('202007240');
}

View File

@@ -10,7 +10,7 @@ final class Froxlor
const VERSION = '0.10.19';
// Database version (YYYYMMDDC where C is a daily counter)
const DBVERSION = '202005150';
const DBVERSION = '202007240';
// Distribution branding-tag (used for Debian etc.)
const BRANDING = '';