X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/b7e0a81d78007c097e7860c752f445263683b42b..5897ea0d3efe16a50706bcf1bde8d33044b5cf5f:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index c6a72415..5a239b25 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["convert11797to11847"]) { + if ($_POST["convert11797to11848"]) { 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`"); @@ -1109,6 +1109,9 @@ if ($_POST) { ttExecute("ALTER TABLE `tt_timesheets` CHANGE `approval_status` `approve_status` tinyint(4) default NULL"); ttExecute("ALTER TABLE `tt_timesheets` CHANGE `manager_comment` `approve_comment` text"); ttExecute("UPDATE `tt_site_config` SET param_value = '1.18.47', modified = now() where param_name = 'version_db' and param_value = '1.18.46'"); + ttExecute("update `tt_roles` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.47') set rights = replace(rights, 'view_own_timesheets,', '')"); + ttExecute("update `tt_roles` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.47') set rights = replace(rights, 'view_timesheets,', '')"); + ttExecute("UPDATE `tt_site_config` SET param_value = '1.18.48', modified = now() where param_name = 'version_db' and param_value = '1.18.47'"); } if ($_POST["cleanup"]) { @@ -1157,7 +1160,7 @@ if ($_POST) {

DB Install

-
Create database structure (v1.18.47) + Create database structure (v1.18.48)
(applies only to new installations, do not execute when updating)
@@ -1202,8 +1205,8 @@ if ($_POST) { - Update database structure (v1.17.97 to v1.18.47) - + Update database structure (v1.17.97 to v1.18.48) +