mirror of https://github.com/itflow-org/itflow
Add database field for ticket_first_response_at. This can be used as part of metric reporting and also as part of SLAs in the future
This commit is contained in:
parent
ad9e4b4fb4
commit
44b70d7161
|
|
@ -2423,10 +2423,16 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.7'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.8.7'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (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
|
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
|
// // 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 {
|
} else {
|
||||||
|
|
|
||||||
1
db.sql
1
db.sql
|
|
@ -2139,6 +2139,7 @@ CREATE TABLE `tickets` (
|
||||||
`ticket_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
`ticket_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||||
`ticket_resolved_at` datetime DEFAULT NULL,
|
`ticket_resolved_at` datetime DEFAULT NULL,
|
||||||
`ticket_archived_at` datetime DEFAULT NULL,
|
`ticket_archived_at` datetime DEFAULT NULL,
|
||||||
|
`ticket_first_response_at` datetime DEFAULT NULL,
|
||||||
`ticket_closed_at` datetime DEFAULT NULL,
|
`ticket_closed_at` datetime DEFAULT NULL,
|
||||||
`ticket_created_by` int(11) NOT NULL,
|
`ticket_created_by` int(11) NOT NULL,
|
||||||
`ticket_assigned_to` int(11) NOT NULL DEFAULT 0,
|
`ticket_assigned_to` int(11) NOT NULL DEFAULT 0,
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@
|
||||||
* It is used in conjunction with database_updates.php
|
* It is used in conjunction with database_updates.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DEFINE("LATEST_DATABASE_VERSION", "1.8.7");
|
DEFINE("LATEST_DATABASE_VERSION", "1.8.8");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue