From 8e24e2719b8ddaa77a3a9287cba2899e4ff3ca9e Mon Sep 17 00:00:00 2001 From: anuko Date: Sat, 6 May 2017 15:52:15 +0000 Subject: [PATCH] Work in progress on tracking mode options. --- WEB-INF/templates/footer.tpl | 2 +- dbinstall.php | 1 + mysql.sql | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 24721d0c..fa18d98e 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.10.42.3627 | Copyright © Anuko | +  Anuko Time Tracker 1.10.42.3628 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index ac88bc42..3f9b8570 100755 --- a/dbinstall.php +++ b/dbinstall.php @@ -636,6 +636,7 @@ if ($_POST) { setChange("ALTER TABLE tt_expense_items modify `name` text NOT NULL"); setChange("ALTER TABLE `tt_teams` ADD `uncompleted_indicators` SMALLINT(2) NOT NULL DEFAULT '0' AFTER `record_type`"); setChange("CREATE TABLE `tt_predefined_expenses` (`id` int(11) NOT NULL auto_increment, `team_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `cost` decimal(10,2) default '0.00', PRIMARY KEY (`id`))"); + setChange("ALTER TABLE `tt_teams` ADD `tracking_mode_options` smallint(2) default NULL AFTER `tracking_mode`"); } // The update_clients function updates projects field in tt_clients table. diff --git a/mysql.sql b/mysql.sql index d8294b2c..9ec80322 100644 --- a/mysql.sql +++ b/mysql.sql @@ -23,7 +23,8 @@ CREATE TABLE `tt_teams` ( `date_format` varchar(20) NOT NULL default '%Y-%m-%d', # date format `time_format` varchar(20) NOT NULL default '%H:%M', # time format `week_start` smallint(2) NOT NULL DEFAULT '0', # Week start day, 0 == Sunday. - `tracking_mode` smallint(2) NOT NULL DEFAULT '1', # tracking mode ("projects" or "projects and tasks") + `tracking_mode` smallint(2) NOT NULL DEFAULT '1', # tracking mode ("time", "projects" or "projects and tasks") + `tracking_mode_options` smallint(2) default NULL, # whether a task selection is required or optional `record_type` smallint(2) NOT NULL DEFAULT '0', # time record type ("start and finish", "duration", or both) `uncompleted_indicators` smallint(2) NOT NULL DEFAULT '0', # whether to show indicators for users with uncompleted time entries `plugins` varchar(255) default NULL, # a list of enabled plugins for team -- 2.20.1