X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/f066e7ba4d1141bad2f50e802c0911e5f76e8ef0..8a0ec8135a1bb4f42c0ae89b7d97e3dfd500aba5:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index f6fd0c1b..9e71651e 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -963,6 +963,8 @@ if ($_POST) { setChange("UPDATE `tt_site_config` SET param_value = '1.18.00', modified = now() where param_name = 'version_db' and param_value = '1.17.97'"); setChange("create index log_idx on tt_custom_field_log(log_id)"); setChange("UPDATE `tt_site_config` SET param_value = '1.18.05', modified = now() where param_name = 'version_db' and param_value = '1.18.00'"); + setChange("update `tt_groups` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.05') set org_id = id where org_id is null"); + setChange("UPDATE `tt_site_config` SET param_value = '1.18.06', modified = now() where param_name = 'version_db' and param_value = '1.18.05'"); } if ($_POST["cleanup"]) {