From: Nik Okuntseff Date: Sun, 21 Jan 2018 21:23:34 +0000 (+0000) Subject: Modified database schema to include paid status on fav reports. X-Git-Tag: timetracker_1.19-1~1347 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a4314b66a96faca049fe6b383302b58a47d93848;p=timetracker.git Modified database schema to include paid status on fav reports. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index ea48a8a8..1df0523f 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- - - + +
 Anuko Time Tracker 1.15.3.3772 | Copyright © Anuko | +  Anuko Time Tracker 1.16.0.3773 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index bf8c958e..9a2078e0 100755 --- a/dbinstall.php +++ b/dbinstall.php @@ -709,8 +709,11 @@ if ($_POST) { setChange("ALTER TABLE `tt_log` ADD `paid` tinyint(4) NULL default '0' AFTER `billable`"); } - if ($_POST["convert11400to11500"]) { + if ($_POST["convert11400to11600"]) { setChange("ALTER TABLE `tt_teams` DROP `address`"); + setChange("ALTER TABLE `tt_fav_reports` ADD `report_spec` text default NULL AFTER `user_id`"); + setChange("ALTER TABLE `tt_fav_reports` ADD `paid_status` tinyint(4) default NULL AFTER `invoice`"); + setChange("ALTER TABLE `tt_fav_reports` ADD `show_paid` tinyint(4) NOT NULL DEFAULT '0' AFTER `show_invoice`"); } if ($_POST["cleanup"]) { @@ -755,7 +758,7 @@ if ($_POST) {

DB Install

-
Create database structure (v1.15.0) + Create database structure (v1.16.0)
(applies only to new installations, do not execute when updating)
@@ -791,8 +794,8 @@ if ($_POST) {

Update database structure (v1.14 to v1.15)
Update database structure (v1.14 to v1.16)
diff --git a/mysql.sql b/mysql.sql index 72701be8..a450cadb 100644 --- a/mysql.sql +++ b/mysql.sql @@ -191,18 +191,21 @@ CREATE TABLE `tt_fav_reports` ( `id` int(11) NOT NULL auto_increment, # favorite report id `name` varchar(200) NOT NULL, # favorite report name `user_id` int(11) NOT NULL, # user id favorite report belongs to + `report_spec` text default NULL, # future replacement field for all report settings `client_id` int(11) default NULL, # client id (if selected) `cf_1_option_id` int(11) default NULL, # custom field 1 option id (if selected) `project_id` int(11) default NULL, # project id (if selected) `task_id` int(11) default NULL, # task id (if selected) `billable` tinyint(4) default NULL, # whether to include billable, not billable, or all records `invoice` tinyint(4) default NULL, # whether to include invoiced, not invoiced, or all records + `paid_status` tinyint(4) default NULL, # whether to include paid, not paid, or all records `users` text default NULL, # Comma-separated list of user ids. Nothing here means "all" users. `period` tinyint(4) default NULL, # selected period type for report `period_start` date default NULL, # period start `period_end` date default NULL, # period end `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_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