X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/61866da737a6cc06ae2c1e4ba766a0c46ab4fb8a..06b80cf38fc0268250fcca3b7270801b4991505f:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index ef895bdd..e3561edd 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -1008,6 +1008,7 @@ if ($_POST) { setChange("UPDATE `tt_expense_items` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.17') set org_id = group_id where org_id is null"); 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)"); } if ($_POST["cleanup"]) {