X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/0b379eb7277555af8e7363bbe66b9e39c7b1d0e8..14a6ab5e563acb66d090c6c291b5d51b1a31fae7:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index d7f90cb8..09d55292 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -972,7 +972,7 @@ if ($_POST) { print "Updated $tt_expense_items_updated tt_expense_items records...
\n"; } - if ($_POST["convert11797to11845"]) { + if ($_POST["convert11797to11846"]) { ttExecute("ALTER TABLE `tt_fav_reports` CHANGE `group_by` `group_by1` varchar(20) default NULL"); ttExecute("ALTER TABLE `tt_fav_reports` ADD `group_by2` varchar(20) default NULL AFTER `group_by1`"); ttExecute("ALTER TABLE `tt_fav_reports` ADD `group_by3` varchar(20) default NULL AFTER `group_by2`"); @@ -1100,6 +1100,8 @@ if ($_POST) { ttExecute("ALTER TABLE `tt_fav_reports` ADD `show_timesheet` tinyint(4) NOT NULL default 0 AFTER `show_project`"); ttExecute("ALTER TABLE `tt_fav_reports` ADD `show_approved` tinyint(4) NOT NULL default 0 AFTER `show_note`"); ttExecute("UPDATE `tt_site_config` SET param_value = '1.18.45', modified = now() where param_name = 'version_db' and param_value = '1.18.44'"); + ttExecute("update `tt_roles` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.45') set rights = replace(rights, 'view_client_timesheets,', '')"); + ttExecute("UPDATE `tt_site_config` SET param_value = '1.18.46', modified = now() where param_name = 'version_db' and param_value = '1.18.45'"); } if ($_POST["cleanup"]) { @@ -1148,7 +1150,7 @@ if ($_POST) {

DB Install

-
Create database structure (v1.18.45) + Create database structure (v1.18.46)
(applies only to new installations, do not execute when updating)
@@ -1193,8 +1195,8 @@ if ($_POST) { - Update database structure (v1.17.97 to v1.18.45) - + Update database structure (v1.17.97 to v1.18.46) +