X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/abc243a67d158977ad2400ae4c41c447448473b5..191af95a641e560104be099de62ea45ac5cd6315:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index 5ee0337e..c65175d5 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -1025,6 +1025,7 @@ if ($_POST) { setChange("ALTER TABLE `tt_config` ADD `group_id` int(11) default NULL AFTER `user_id`"); setChange("ALTER TABLE `tt_config` ADD `org_id` int(11) default NULL AFTER `group_id`"); setChange("UPDATE `tt_site_config` SET param_value = '1.18.22', modified = now() where param_name = 'version_db' and param_value = '1.18.21'"); + setChange("update `tt_config` c inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.22') inner join `tt_users` u on u.id = c.user_id set c.group_id = u.group_id, c.org_id = u.org_id where c.org_id is null"); } if ($_POST["cleanup"]) {