mirror of
https://github.com/itflow-org/itflow
synced 2026-03-11 00:04:50 +00:00
Correct database update logic to ensure future updates work properly
This commit is contained in:
@@ -2084,11 +2084,11 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
|||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.4.2'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.4.2'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (CURRENT_DATABASE_VERSION == '1.4.2') {
|
if (CURRENT_DATABASE_VERSION == '1.4.2') {
|
||||||
mysqli_query($mysqli, "ALTER TABLE `settings` ADD `config_ticket_email_parse_unknown_senders` INT(1) NOT NULL DEFAULT '0' AFTER `config_ticket_email_parse`");
|
mysqli_query($mysqli, "ALTER TABLE `settings` ADD `config_ticket_email_parse_unknown_senders` INT(1) NOT NULL DEFAULT '0' AFTER `config_ticket_email_parse`");
|
||||||
|
|
||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.4.3'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.4.3'");
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if (CURRENT_DATABASE_VERSION == '1.4.3') {
|
// if (CURRENT_DATABASE_VERSION == '1.4.3') {
|
||||||
// // Insert queries here required to update to DB version 1.4.4
|
// // Insert queries here required to update to DB version 1.4.4
|
||||||
|
|||||||
Reference in New Issue
Block a user