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

Change thread body type to mediumtext

parent 427f9a21
No related branches found
No related tags found
No related merge requests found
519d98cd885f060e220da7b30a6f78ae b26f29a6bb5dbb3510b057632182d138
...@@ -32,6 +32,14 @@ UPDATE `%TABLE_PREFIX%ticket_status` ...@@ -32,6 +32,14 @@ UPDATE `%TABLE_PREFIX%ticket_status`
SET `properties`= INSERT(`properties`, 2, 0, '"allowreopen":true,"reopenstatus":0,') SET `properties`= INSERT(`properties`, 2, 0, '"allowreopen":true,"reopenstatus":0,')
WHERE `state` = 'closed'; WHERE `state` = 'closed';
-- change thread body text to 16Mb.
ALTER TABLE `%TABLE_PREFIX%ticket_thread`
CHANGE `body` `body` mediumtext NOT NULL;
-- index ext id
ALTER TABLE `%TABLE_PREFIX%note`
ADD INDEX (`ext_id`);
-- Set new schema signature -- Set new schema signature
UPDATE `%TABLE_PREFIX%config` UPDATE `%TABLE_PREFIX%config`
SET `value` = '519d98cd885f060e220da7b30a6f78ae' SET `value` = '519d98cd885f060e220da7b30a6f78ae'
......
...@@ -489,7 +489,8 @@ CREATE TABLE `%TABLE_PREFIX%note` ( ...@@ -489,7 +489,8 @@ CREATE TABLE `%TABLE_PREFIX%note` (
`sort` int(11) unsigned NOT NULL DEFAULT 0, `sort` int(11) unsigned NOT NULL DEFAULT 0,
`created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, `updated` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`) PRIMARY KEY (`id`),
KEY `ext_id` (`ext_id`)
) DEFAULT CHARSET=utf8; ) DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `%TABLE_PREFIX%session`; DROP TABLE IF EXISTS `%TABLE_PREFIX%session`;
...@@ -715,7 +716,7 @@ CREATE TABLE `%TABLE_PREFIX%ticket_thread` ( ...@@ -715,7 +716,7 @@ CREATE TABLE `%TABLE_PREFIX%ticket_thread` (
`poster` varchar(128) NOT NULL default '', `poster` varchar(128) NOT NULL default '',
`source` varchar(32) NOT NULL default '', `source` varchar(32) NOT NULL default '',
`title` varchar(255), `title` varchar(255),
`body` text NOT NULL, `body` mediumtext NOT NULL,
`format` varchar(16) NOT NULL default 'html', `format` varchar(16) NOT NULL default 'html',
`ip_address` varchar(64) NOT NULL default '', `ip_address` varchar(64) NOT NULL default '',
`created` datetime NOT NULL, `created` datetime NOT NULL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment