From: anuko Date: Sat, 29 Jul 2017 16:39:14 +0000 (+0000) Subject: Introduced status field in tt_fav_reports table to support handling user deletions. X-Git-Tag: timetracker_1.19-1~1499 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/commitdiff_plain/faab3aece19a445dd7e2e42d82f47e701d32366f Introduced status field in tt_fav_reports table to support handling user deletions. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 03e56bbc..694cf8ea 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.11.45.3648 | Copyright © Anuko | +  Anuko Time Tracker 1.11.46.3649 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index 9638fe4f..4199288e 100755 --- a/dbinstall.php +++ b/dbinstall.php @@ -639,6 +639,7 @@ if ($_POST) { setChange("ALTER TABLE `tt_teams` ADD `task_required` smallint(2) NOT NULL DEFAULT '0' AFTER `tracking_mode`"); setChange("ALTER TABLE `tt_teams` ADD `project_required` smallint(2) NOT NULL DEFAULT '0' AFTER `tracking_mode`"); setChange("ALTER TABLE `tt_cron` ADD `report_condition` varchar(255) default NULL AFTER `email`"); + setChange("ALTER TABLE `tt_fav_reports` ADD `status` tinyint(4) default '1'"); } // The update_clients function updates projects field in tt_clients table. diff --git a/mysql.sql b/mysql.sql index bf0fb204..b7cd7002 100644 --- a/mysql.sql +++ b/mysql.sql @@ -212,6 +212,7 @@ CREATE TABLE `tt_fav_reports` ( `show_custom_field_1` tinyint(4) NOT NULL default '0', # whether to show custom field 1 `show_totals_only` tinyint(4) NOT NULL default '0', # whether to show totals only `group_by` varchar(20) default NULL, # group by field + `status` tinyint(4) default '1', # favorite report status PRIMARY KEY (`id`) );