mirror of https://github.com/itflow-org/itflow
Merge pull request #1182 from itflow-org/tck-fr-at
Add database field for ticket_first_response_at.
This commit is contained in:
commit
bf9c2f6de7
|
|
@ -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
1
db.sql
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue