X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/7f313df2fbc1b28531adccbf022d6fdde0d6fdc8..3c5f822f90846e9a65866c9e33b7e1ff81b46b1f:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index a2ff4331..1c5fa900 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -982,6 +982,8 @@ if ($_POST) { setChange("ALTER TABLE `tt_log` ADD `org_id` int(11) default NULL AFTER `group_id`"); setChange("ALTER TABLE `tt_invoices` ADD `org_id` int(11) default NULL AFTER `group_id`"); setChange("UPDATE `tt_site_config` SET param_value = '1.18.11', modified = now() where param_name = 'version_db' and param_value = '1.18.10'"); + setChange("UPDATE `tt_log` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.11') set org_id = group_id where org_id is null"); + setChange("UPDATE `tt_invoices` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.11') set org_id = group_id where org_id is null"); } if ($_POST["cleanup"]) {