From 8e10219e51dcb9c39d84fe792b6207227d12b46a Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sun, 18 Nov 2018 18:39:45 +0000 Subject: [PATCH] Version update. --- WEB-INF/templates/footer.tpl | 2 +- dbinstall.php | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index f66ff9ba..cf8c742b 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- - - + +
 Anuko Time Tracker 1.18.17.4450 | Copyright © Anuko | +  Anuko Time Tracker 1.18.18.4451 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index e3561edd..3dfcb931 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -957,7 +957,7 @@ if ($_POST) { print "Updated $tt_expense_items_updated tt_expense_items records...
\n"; } - if ($_POST["convert11797to11817"]) { + if ($_POST["convert11797to11818"]) { setChange("ALTER TABLE `tt_fav_reports` CHANGE `group_by` `group_by1` varchar(20) default NULL"); setChange("ALTER TABLE `tt_fav_reports` ADD `group_by2` varchar(20) default NULL AFTER `group_by1`"); setChange("ALTER TABLE `tt_fav_reports` ADD `group_by3` varchar(20) default NULL AFTER `group_by2`"); @@ -1009,6 +1009,7 @@ if ($_POST) { setChange("update `tt_user_project_binds` upb inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.17') inner join `tt_users` u on u.id = upb.user_id set upb.group_id = u.group_id, upb.org_id = u.org_id where upb.org_id is null"); setChange("update `tt_project_task_binds` ptb inner join tt_site_config sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.17') inner join `tt_projects` p on p.id = ptb.project_id set ptb.group_id = p.group_id, ptb.org_id = p.org_id where ptb.org_id is null"); setChange("create unique index project_task_idx on tt_project_task_binds(project_id, task_id)"); + setChange("UPDATE `tt_site_config` SET param_value = '1.18.18', modified = now() where param_name = 'version_db' and param_value = '1.18.17'"); } if ($_POST["cleanup"]) { @@ -1055,7 +1056,7 @@ if ($_POST) {

DB Install

-
Create database structure (v1.18.17) + Create database structure (v1.18.18)
(applies only to new installations, do not execute when updating)
@@ -1100,8 +1101,8 @@ if ($_POST) {
Update database structure (v1.17.97 to v1.18.17)Update database structure (v1.17.97 to v1.18.18)
-- 2.20.1