-- -- -- Update an existing OTRS database from 1.2 to 1.3 -- Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/ -- -- -- $Id: DBUpdate-to-1.3.mysql.sql,v 1.15 2006/10/03 14:34:47 mh Exp $ -- -- -- -- usage: cat DBUpdate-to-1.3.mysql.sql | mysql -f -u root otrs -- -- -- -- -- drop not used ticket log types -- DELETE FROM ticket_history_type WHERE name = 'WatingForClose+'; DELETE FROM ticket_history_type WHERE name = 'WatingForClose-'; DELETE FROM ticket_history_type WHERE name = 'WatingForReminder'; DELETE FROM ticket_history_type WHERE name = 'Open'; DELETE FROM ticket_history_type WHERE name = 'Reopen'; DELETE FROM ticket_history_type WHERE name = 'Close unsuccessful'; DELETE FROM ticket_history_type WHERE name = 'Close successful'; DELETE FROM ticket_history_type WHERE name = 'SetPending'; -- -- new ticket history stuff -- INSERT INTO ticket_history_type (name, valid_id, create_by, create_time, change_by, change_time) VALUES ('TicketLinkAdd', 1, 1, current_timestamp, 1, current_timestamp); INSERT INTO ticket_history_type (name, valid_id, create_by, create_time, change_by, change_time) VALUES ('TicketLinkDelete', 1, 1, current_timestamp, 1, current_timestamp); -- -- alter article table (just a bug in mysql script!) -- ALTER TABLE article CHANGE ticket_id ticket_id BIGINT; -- -- add more attachment info -- ALTER TABLE article_attachment ADD content_size VARCHAR (30); -- -- change max customer user login size -- ALTER TABLE group_customer_user CHANGE user_id user_id VARCHAR (100); -- -- postmaster filter table -- CREATE TABLE postmaster_filter ( f_name varchar (200) NOT NULL, f_type varchar (20) NOT NULL, f_key varchar (200) NOT NULL, f_value varchar (200) NOT NULL ); -- -- generic_agent_jobs -- CREATE TABLE generic_agent_jobs ( job_name varchar (200) NOT NULL, job_key varchar (200) NOT NULL, job_value varchar (200) NOT NULL ); -- -- change size for message id -- ALTER TABLE article CHANGE a_message_id a_message_id MEDIUMTEXT; -- -- index for message id -- ALTER TABLE article ADD INDEX article_message_id (a_message_id(255)); -- -- ticket_history -- ALTER TABLE ticket_history CHANGE system_queue_id queue_id INTEGER NOT NULL; ALTER TABLE ticket_history ADD owner_id INTEGER NOT NULL; ALTER TABLE ticket_history ADD priority_id SMALLINT NOT NULL; ALTER TABLE ticket_history ADD state_id SMALLINT NOT NULL; -- -- queue, add default sign key option -- ALTER TABLE queue ADD default_sign_key varchar (100); -- -- customer notifications (en) -- INSERT INTO notifications (notification_type, notification_charset, notification_language, subject, text, create_time, create_by, change_time, change_by) VALUES ('Customer::QueueUpdate', 'iso-8859-1', 'en', 'New Queue ""!', '*** THIS IS JUST A NOTE *** The queue of your ticket "" has been changed by " " to "". :///customer.pl?Action=CustomerZoom&TicketID= Your OTRS Notification Master *** THIS IS JUST A NOTE *** ', current_timestamp, 1, current_timestamp, 1); INSERT INTO notifications (notification_type, notification_charset, notification_language, subject, text, create_time, create_by, change_time, change_by) VALUES ('Customer::OwnerUpdate', 'iso-8859-1', 'en', 'New Owner ""!', '*** THIS IS JUST A NOTE *** The owner of your ticket "" has been changed to " . :///customer.pl?Action=CustomerZoom&TicketID= Your OTRS Notification Master *** THIS IS JUST A NOTE *** ', current_timestamp, 1, current_timestamp, 1); INSERT INTO notifications (notification_type, notification_charset, notification_language, subject, text, create_time, create_by, change_time, change_by) VALUES ('Customer::StateUpdate', 'iso-8859-1', 'en', 'New State ""!', '*** THIS IS JUST A NOTE *** The state of your ticket "" has been changed by " " to "". :///customer.pl?Action=CustomerZoom&TicketID= Your OTRS Notification Master *** THIS IS JUST A NOTE *** ', current_timestamp, 1, current_timestamp, 1); -- -- customer notifications (de) -- INSERT INTO notifications (notification_type, notification_charset, notification_language, subject, text, create_time, create_by, change_time, change_by) VALUES ('Customer::QueueUpdate', 'iso-8859-1', 'de', 'Neue Queue ""!', '*** NUR EINE INFO *** Die Queue Ihres Tickets "" hat " " auf "" geaendert. :///customer.pl?Action=CustomerZoom&TicketID= Dein OTRS Benachrichtigungs-Master *** NUR EINE INFO *** ', current_timestamp, 1, current_timestamp, 1); INSERT INTO notifications (notification_type, notification_charset, notification_language, subject, text, create_time, create_by, change_time, change_by) VALUES ('Customer::OwnerUpdate', 'iso-8859-1', 'de', 'Neuer Besitzer ""!', '*** NUR EINE INFO *** Der Besitzer des Tickets "" hat sich auf " geaendert. :///customer.pl?Action=CustomerZoom&TicketID= Dein OTRS Benachrichtigungs-Master *** NUR EINE INFO *** ', current_timestamp, 1, current_timestamp, 1); INSERT INTO notifications (notification_type, notification_charset, notification_language, subject, text, create_time, create_by, change_time, change_by) VALUES ('Customer::StateUpdate', 'iso-8859-1', 'de', 'Neuer Status ""!', '*** NUR EINE INFO *** Der Status des Tickets "" hat sich durch " " auf "" veraendert. :///customer.pl?Action=CustomerZoom&TicketID= Dein OTRS Benachrichtigungs-Master *** NUR EINE INFO *** ', current_timestamp, 1, current_timestamp, 1);