From 90115a9238f9a291ed91cd573c3896efe7ef5e35 Mon Sep 17 00:00:00 2001 From: anuko Date: Sat, 11 Feb 2017 19:38:24 +0000 Subject: [PATCH] Changed data type for tt_log comment to TEXT because of _union all_ problems with some MySQL installations, specifically version 5.0.95 where cyrillic expense names were corrupted on reports. --- WEB-INF/templates/footer.tpl | 2 +- dbinstall.php | 4 ++-- mysql.sql | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 34cdc724..c4690a01 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.36.3570 | Copyright © Anuko | +  Anuko Time Tracker 1.9.37.3571 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index 49cfe5f4..0aaa8b49 100755 --- a/dbinstall.php +++ b/dbinstall.php @@ -172,7 +172,7 @@ if ($_POST) { } if ($_POST["convert5to7"]) { - setChange("alter table `activity_log` CHANGE al_comment al_comment BLOB"); + setChange("alter table `activity_log` CHANGE al_comment al_comment text"); setChange("CREATE TABLE `sysconfig` (`sysc_id` int(11) unsigned NOT NULL auto_increment,`sysc_name` varchar(32) NOT NULL default '',`sysc_value` varchar(70) default NULL, PRIMARY KEY (`sysc_id`), UNIQUE KEY `sysc_id` (`sysc_id`), UNIQUE KEY `sysc_name` (`sysc_name`))"); setChange("alter table `companies` add c_locktime int(4) default -1"); setChange("alter table `activity_log` add al_billable tinyint(4) default 0"); @@ -547,7 +547,7 @@ if ($_POST) { setChange("ALTER TABLE tt_log CHANGE al_project_id project_id int(11) NOT NULL"); setChange("ALTER TABLE tt_log MODIFY project_id int(11) default NULL"); setChange("ALTER TABLE tt_log CHANGE al_activity_id task_id int(11) default NULL"); - setChange("ALTER TABLE tt_log CHANGE al_comment comment blob"); + setChange("ALTER TABLE tt_log CHANGE al_comment comment text"); setChange("ALTER TABLE tt_log CHANGE al_billable billable tinyint(4) default '0'"); setChange("drop index al_user_id_idx on tt_log"); setChange("drop index al_project_id_idx on tt_log"); diff --git a/mysql.sql b/mysql.sql index dd1d8c83..a951a054 100644 --- a/mysql.sql +++ b/mysql.sql @@ -139,7 +139,7 @@ CREATE TABLE `tt_log` ( `project_id` int(11) default NULL, # project id `task_id` int(11) default NULL, # task id `invoice_id` int(11) default NULL, # invoice id - `comment` blob, # user provided comment for time record + `comment` text, # user provided comment for time record `billable` tinyint(4) default '0', # whether the record is billable or not `status` tinyint(4) default '1', # time record status PRIMARY KEY (`id`) -- 2.20.1