From: Nik Okuntseff Date: Thu, 18 Jan 2018 00:50:30 +0000 (+0000) Subject: Work in progress integrating changes from PR #48 - introduced a database field. X-Git-Tag: timetracker_1.19-1~1371 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/commitdiff_plain/dd30f46db3b91a8540b92f905930d8c38ea4c2b9 Work in progress integrating changes from PR #48 - introduced a database field. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 06726f1a..e1c31da8 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- - - + +
 Anuko Time Tracker 1.13.15.3748 | Copyright © Anuko | +  Anuko Time Tracker 1.14.0.3749 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index 2b0d896c..49c9747e 100755 --- a/dbinstall.php +++ b/dbinstall.php @@ -600,7 +600,7 @@ if ($_POST) { setChange("ALTER TABLE tt_invoices DROP end_date"); } - if ($_POST["convert1600to11300"]) { + if ($_POST["convert1600to11400"]) { setChange("DROP TABLE IF EXISTS tt_invoice_headers"); setChange("ALTER TABLE tt_fav_reports ADD COLUMN `client_id` int(11) default NULL"); setChange("ALTER TABLE tt_fav_reports ADD COLUMN `cf_1_option_id` int(11) default NULL"); @@ -645,6 +645,7 @@ if ($_POST) { setChange("ALTER TABLE `tt_teams` ADD `bcc_email` varchar(100) default NULL AFTER `uncompleted_indicators`"); setChange("ALTER TABLE `tt_cron` ADD `cc` varchar(100) default NULL AFTER `email`"); setChange("ALTER TABLE `tt_cron` ADD `subject` varchar(100) default NULL AFTER `cc`"); + setChange("ALTER TABLE `tt_log` ADD `paid` tinyint(4) NULL default '0' AFTER `billable`"); } // The update_clients function updates projects field in tt_clients table. @@ -750,7 +751,7 @@ if ($_POST) {

DB Install

-
Create database structure (v1.13.0) + Create database structure (v1.14.0)
(applies only to new installations, do not execute when updating)
@@ -782,8 +783,8 @@ if ($_POST) {



Update database structure (v1.6 to v1.13)
Update database structure (v1.6 to v1.14)
diff --git a/mysql.sql b/mysql.sql index de5060da..9a971bec 100644 --- a/mysql.sql +++ b/mysql.sql @@ -144,6 +144,7 @@ CREATE TABLE `tt_log` ( `invoice_id` int(11) default NULL, # invoice id `comment` text, # user provided comment for time record `billable` tinyint(4) default '0', # whether the record is billable or not + `paid` tinyint(4) default '0', # whether the record is paid `status` tinyint(4) default '1', # time record status PRIMARY KEY (`id`) );