Skip to content

Commit

Permalink
Merge pull request #997 from itflow-org/wrongecho-db-update-small-fix
Browse files Browse the repository at this point in the history
Correct database update logic to ensure future updates work properly
  • Loading branch information
wrongecho authored Aug 16, 2024
2 parents d931623 + 05e2b51 commit 0b801b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions database_updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -2084,11 +2084,11 @@
mysqli_query($mysqli, "UPDATE `settings` SET `config_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`");
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, "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') {
// // Insert queries here required to update to DB version 1.4.4
Expand Down

0 comments on commit 0b801b2

Please sign in to comment.