X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/0d139d09bd3304dd9666ea4a74d367ad16c85604..cd0fdd6bdf0879f047732df3d0092a291b35ff6c:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index 90067399..a6c499bd 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -1032,6 +1032,7 @@ if ($_POST) { setChange("ALTER TABLE `tt_custom_field_log` ADD `group_id` int(11) default NULL AFTER `id`"); setChange("ALTER TABLE `tt_custom_field_log` ADD `org_id` int(11) default NULL AFTER `group_id`"); setChange("UPDATE `tt_site_config` SET param_value = '1.18.23', modified = now() where param_name = 'version_db' and param_value = '1.18.22'"); + setChange("UPDATE `tt_custom_fields` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.23') set org_id = group_id where org_id is null"); } if ($_POST["cleanup"]) {