From: Nik Okuntseff Date: Mon, 19 Mar 2018 14:00:11 +0000 (+0000) Subject: Introduced show_ip field in tt_fav_reports. X-Git-Tag: timetracker_1.19-1~1000 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7ae701986bfb6d16f661becd5157d5a062db625f;p=timetracker.git Introduced show_ip field in tt_fav_reports. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index c1a6c321..5dce1a7d 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.60.4111 | Copyright © Anuko | +  Anuko Time Tracker 1.17.61.4112 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index 57dc6fd4..4fcbc224 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -839,6 +839,8 @@ if ($_POST) { setChange("ALTER TABLE `tt_expense_items` ADD `modified_ip` varchar(45) default NULL AFTER `modified`"); setChange("ALTER TABLE `tt_expense_items` ADD `modified_by` int(11) default NULL AFTER `modified_ip`"); setChange("UPDATE `tt_site_config` SET param_value = '1.17.59', modified = now() where param_name = 'version_db' and param_value = '1.17.56'"); + setChange("ALTER TABLE `tt_fav_reports` ADD `show_ip` tinyint(4) NOT NULL DEFAULT '0' AFTER `show_paid`"); + setChange("UPDATE `tt_site_config` SET param_value = '1.17.61', modified = now() where param_name = 'version_db' and param_value = '1.17.59'"); } if ($_POST["cleanup"]) { diff --git a/mysql.sql b/mysql.sql index 502884d9..6a763716 100644 --- a/mysql.sql +++ b/mysql.sql @@ -251,6 +251,7 @@ CREATE TABLE `tt_fav_reports` ( `show_client` tinyint(4) NOT NULL default 0, # whether to show client column `show_invoice` tinyint(4) NOT NULL default 0, # whether to show invoice column `show_paid` tinyint(4) NOT NULL default 0, # whether to show paid column + `show_ip` tinyint(4) NOT NULL default 0, # whether to show ip column `show_project` tinyint(4) NOT NULL default 0, # whether to show project column `show_start` tinyint(4) NOT NULL default 0, # whether to show start field `show_duration` tinyint(4) NOT NULL default 0, # whether to show duration field