Reworked Client Domains, added mail host and dns host, made all the host columns sortable by reworking the logic and optimized the code further

This commit is contained in:
johnnyq
2024-04-10 13:21:45 -04:00
parent 7ca4163552
commit 88a96e3044
8 changed files with 159 additions and 28 deletions

View File

@@ -1867,10 +1867,17 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.6'");
}
// if (CURRENT_DATABASE_VERSION == '1.2.6') {
// // Insert queries here required to update to DB version 1.2.7
if (CURRENT_DATABASE_VERSION == '1.2.6') {
mysqli_query($mysqli, "ALTER TABLE `domains` ADD `domain_dnshost` INT(11) NOT NULL DEFAULT 0 AFTER `domain_webhost`");
mysqli_query($mysqli, "ALTER TABLE `domains` ADD `domain_mailhost` INT(11) NOT NULL DEFAULT 0 AFTER `domain_dnshost`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.7'");
}
// if (CURRENT_DATABASE_VERSION == '1.2.7') {
// // Insert queries here required to update to DB version 1.2.8
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.7");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.8");
// }
} else {