From: Nik Okuntseff Date: Wed, 21 Nov 2018 18:51:25 +0000 (+0000) Subject: Introduced description field for groups as part of subgroup support. X-Git-Tag: timetracker_1.19-1~583 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=32e0397e34d3092eb2b89411ab97ee288f88038a;p=timetracker.git Introduced description field for groups as part of subgroup support. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 8831f22f..81f3d40a 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.26.4487 | Copyright © Anuko | +  Anuko Time Tracker 1.18.26.4488 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index 264fc379..f87b2a4e 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -1037,6 +1037,8 @@ if ($_POST) { setChange("update `tt_custom_field_log` cfl inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.23') inner join `tt_custom_fields` cf on cf.id = cfl.field_id set cfl.group_id = cf.group_id, cfl.org_id = cf.org_id where cfl.org_id is null"); setChange("ALTER TABLE `tt_custom_field_options` ADD `status` tinyint(4) default '1' after `value`"); setChange("UPDATE `tt_site_config` SET param_value = '1.18.24', modified = now() where param_name = 'version_db' and param_value = '1.18.23'"); + setChange("ALTER TABLE `tt_groups` ADD COLUMN `description` varchar(255) default NULL after `name`"); + setChange("UPDATE `tt_site_config` SET param_value = '1.18.26', modified = now() where param_name = 'version_db' and param_value = '1.18.24'"); } if ($_POST["cleanup"]) { diff --git a/mysql.sql b/mysql.sql index 0ddf3bfa..0f3f00c9 100644 --- a/mysql.sql +++ b/mysql.sql @@ -17,6 +17,7 @@ CREATE TABLE `tt_groups` ( `parent_id` int(11) default NULL, # parent group id `org_id` int(11) default NULL, # organization id (id of top group) `name` varchar(80) default NULL, # group name + `description` varchar(255) default NULL, # group description `currency` varchar(7) default NULL, # currency symbol `decimal_mark` char(1) NOT NULL default '.', # separator in decimals `lang` varchar(10) NOT NULL default 'en', # language @@ -487,4 +488,4 @@ CREATE TABLE `tt_site_config` ( PRIMARY KEY (`param_name`) ); -INSERT INTO `tt_site_config` (`param_name`, `param_value`, `created`) VALUES ('version_db', '1.18.24', now()); # TODO: change when structure changes. +INSERT INTO `tt_site_config` (`param_name`, `param_value`, `created`) VALUES ('version_db', '1.18.26', now()); # TODO: change when structure changes.