X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/eae8b284cbee2b8e78b311bfa3a94f731f5056ee..509d1d70d0580e26a4467e123c06d2c8939f32cc:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index 26f1a33a..d150e735 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -989,6 +989,8 @@ if ($_POST) { setChange("ALTER TABLE `tt_project_task_binds` ADD `group_id` int(11) default NULL AFTER `task_id`"); setChange("ALTER TABLE `tt_project_task_binds` ADD `org_id` int(11) default NULL AFTER `group_id`"); setChange("UPDATE `tt_site_config` SET param_value = '1.18.12', modified = now() where param_name = 'version_db' and param_value = '1.18.11'"); + // TODO: this does not work as we just introduced group_id and it is NULL. Same for tt_project_task_binds. Improve. + // setChange("UPDATE `tt_user_project_binds` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.12') set org_id = group_id where org_id is null"); } if ($_POST["cleanup"]) {