mirror of
https://github.com/itflow-org/itflow
synced 2026-11-26 14:27:27 +00:00
Ticket page: server-side reply drafts with discard and nightly cleanup (db 4.0.1), drop files on the reply box, quick time buttons, no-time prompt on billable replies, split a client reply into a new ticket, copy a ticket, apply a template to an open ticket, keep and read the original email on emailed replies, click-to-zoom pictures
This commit is contained in:
24
admin/database_updates/4.0.1.php
Normal file
24
admin/database_updates/4.0.1.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* ITFlow - Database update to version 4.0.1 (from 4.0.0)
|
||||
* Included by admin/database_updates.php - do not access directly
|
||||
*
|
||||
* ticket_reply_drafts - the reply an agent is writing on a ticket, kept as they type so a page
|
||||
* left, a browser closed or a sign-in timing out doesn't lose it (functions/ticket_reply_draft.php).
|
||||
* One per agent per ticket; it goes when the reply is sent, and nightly once a month old or once
|
||||
* the ticket is closed.
|
||||
*
|
||||
* 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_reply_drafts` (
|
||||
`ticket_id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`draft_body` longtext NOT NULL,
|
||||
`draft_updated_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`ticket_id`, `user_id`),
|
||||
KEY `draft_updated_at` (`draft_updated_at`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci");
|
||||
Reference in New Issue
Block a user