Merge pull request #1182 from itflow-org/tck-fr-at

Add database field for ticket_first_response_at.
This commit is contained in:
Johnny 2025-03-09 12:31:07 -04:00 committed by GitHub
commit bf9c2f6de7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 4 deletions

View File

@ -2423,10 +2423,16 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.7'");
}
// if (CURRENT_DATABASE_VERSION == '1.8.7') {
// // Insert queries here required to update to DB version 1.8.8
if (CURRENT_DATABASE_VERSION == '1.8.7') {
mysqli_query($mysqli, "ALTER TABLE `tickets` ADD `ticket_first_response_at` DATETIME NULL DEFAULT NULL AFTER `ticket_archived_at`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.8'");
}
// if (CURRENT_DATABASE_VERSION == '1.8.8') {
// // Insert queries here required to update to DB version 1.8.9
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.8'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.9'");
// }
} else {

1
db.sql
View File

@ -2139,6 +2139,7 @@ CREATE TABLE `tickets` (
`ticket_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
`ticket_resolved_at` datetime DEFAULT NULL,
`ticket_archived_at` datetime DEFAULT NULL,
`ticket_first_response_at` datetime DEFAULT NULL,
`ticket_closed_at` datetime DEFAULT NULL,
`ticket_created_by` int(11) NOT NULL,
`ticket_assigned_to` int(11) NOT NULL DEFAULT 0,

View File

@ -5,4 +5,4 @@
* It is used in conjunction with database_updates.php
*/
DEFINE("LATEST_DATABASE_VERSION", "1.8.7");
DEFINE("LATEST_DATABASE_VERSION", "1.8.8");