]> wagnertech.de Git - timetracker.git/blobdiff - dbinstall.php
Fixed importing clients without projects in new import.
[timetracker.git] / dbinstall.php
index 26f1a33aa3bf79a65dca875fa2415681c18dd779..d150e7350e77ed0340ed4384910532ae6766ee69 100644 (file)
@@ -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"]) {