]> wagnertech.de Git - timetracker.git/blobdiff - dbinstall.php
Added org_id to a couple more tables.
[timetracker.git] / dbinstall.php
index e77c24b91ea4fd9ee06fb4e875d10828f260e8d9..9a87d38e3f7726d1ce4b4e95a758ff52474ad333 100644 (file)
@@ -979,6 +979,9 @@ if ($_POST) {
     setChange("UPDATE `tt_site_config` SET param_value = '1.18.10', modified = now() where param_name = 'version_db' and param_value = '1.18.09'");
     setChange("UPDATE `tt_projects` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.10') set org_id = group_id where org_id is null");
     setChange("UPDATE `tt_tasks` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.10') set org_id = group_id where org_id is null");
+    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'");
   }
 
   if ($_POST["cleanup"]) {