Added Timezone to the DB settings option will come soon also added 3 sec wait between Application Updates and DB Updates to fix issue where after update and DB has an update but does not show it

This commit is contained in:
johnnyq
2023-02-09 14:37:02 -05:00
parent 7685029016
commit 58fe752bd9
4 changed files with 16 additions and 5 deletions

View File

@@ -854,11 +854,17 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.4.2'");
}
//if (CURRENT_DATABASE_VERSION == '0.4.2') {
// Insert queries here required to update to DB version 0.4.3
if (CURRENT_DATABASE_VERSION == '0.4.2') {
mysqli_query($mysqli, "ALTER TABLE `settings` ADD `config_timezone` VARCHAR(200) NOT NULL DEFAULT 'America/New_York' AFTER `config_telemetry`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.4.3'");
}
//if (CURRENT_DATABASE_VERSION == '0.4.3') {
// Insert queries here required to update to DB version 0.4.4
// Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.4.3'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.4.4'");
//}
} else {