Skip to content
Snippets Groups Projects
Commit e9eb8a73 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #344 from protich/issue/upgrade-bugfixes

Upgrader bugfixes
parents 0e120748 c0e808d3
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,10 @@ ALTER TABLE `%TABLE_PREFIX%config`
ADD `show_related_tickets` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1' AFTER `auto_assign_reopened_tickets`,
ADD `schema_signature` CHAR( 32 ) NOT NULL AFTER `ostversion`;
-- copy over timezone id - based on offset.
UPDATE `%TABLE_PREFIX%config` SET default_timezone_id =
(SELECT id FROM `%TABLE_PREFIX%timezone` WHERE offset = `%TABLE_PREFIX%config`.timezone_offset);
ALTER TABLE `%TABLE_PREFIX%staff`
ADD `passwdreset` DATETIME NULL DEFAULT NULL AFTER `lastlogin`;
......@@ -145,8 +149,8 @@ ALTER TABLE `%TABLE_PREFIX%email_template`
ADD `transfer_alert_subj` VARCHAR( 255 ) NOT NULL AFTER `assigned_alert_body`,
ADD `transfer_alert_body` TEXT NOT NULL AFTER `transfer_alert_subj`;
-- Insert default text for the new messaage tpl (all records are updated).
UPDATE `%TABLE_PREFIX%email_template` SET updated=NOW() ,transfer_alert_subj='Ticket Transfer #%ticket - %dept',transfer_alert_body='%staff,\r\n\r\nTicket #%ticket has been transferred to %dept department.\r\n\r\n----------------------\r\n\r\n%note\r\n\r\n-------------------\r\n\r\nTo view/respond to the ticket, please login to the support ticket system.\r\n\r\n%url/scp/ticket.php?id=%id\r\n\r\n- Your friendly Customer Support System - powered by osTicket.';
-- Insert default text for the new messaage tpl + make templates active (all records are updated).
UPDATE `%TABLE_PREFIX%email_template` SET updated=NOW() ,isactive=1, transfer_alert_subj='Ticket Transfer #%ticket - %dept',transfer_alert_body='%staff,\r\n\r\nTicket #%ticket has been transferred to %dept department.\r\n\r\n----------------------\r\n\r\n%note\r\n\r\n-------------------\r\n\r\nTo view/respond to the ticket, please login to the support ticket system.\r\n\r\n%url/scp/ticket.php?id=%id\r\n\r\n- Your friendly Customer Support System - powered by osTicket.';
ALTER TABLE `%TABLE_PREFIX%help_topic`
ADD ispublic TINYINT(1) UNSIGNED NOT NULL DEFAULT '1' AFTER isactive,
......
......@@ -92,7 +92,7 @@ INSERT INTO `%TABLE_PREFIX%ticket_email_info`
AND `thread_type` = 'M' ),
`messageId`, `headers`
FROM `%TABLE_PREFIX%ticket_message`
WHERE `messageId` IS NOT NULL;
WHERE `messageId` IS NOT NULL AND `messageId` <>'';
-- Update attachment table
UPDATE `%TABLE_PREFIX%ticket_attachment`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment