mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 20:07:24 +00:00
Tickets list: keeps itself up to date with a bar for tickets that came or went, bold for tickets the client wrote on since you last opened them with Mark as read (db 4.0.2), the last reply on hover over Activity, your open ticket count in the browser tab title, and desktop notifications for tickets assigned to you and client replies
This commit is contained in:
22
admin/database_updates/4.0.2.php
Normal file
22
admin/database_updates/4.0.2.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* ITFlow - Database update to version 4.0.2 (from 4.0.1)
|
||||
* Included by admin/database_updates.php - do not access directly
|
||||
*
|
||||
* ticket_reads - when each agent last opened each ticket, so the tickets list can show in bold
|
||||
* the ones the client has written on since (functions/ticket_read.php). The row with ticket_id 0
|
||||
* is an agent's starting point: anything older counts as seen. Rows for closed tickets go nightly.
|
||||
*
|
||||
* Re-runnable: the table is only made where it isn't there yet.
|
||||
*/
|
||||
|
||||
defined('FROM_DB_UPDATER') || die("Direct file access is not allowed");
|
||||
|
||||
mysqli_query($mysqli, "CREATE TABLE IF NOT EXISTS `ticket_reads` (
|
||||
`ticket_id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`read_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`ticket_id`, `user_id`),
|
||||
KEY `user_id` (`user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci");
|
||||
Reference in New Issue
Block a user