]> wagnertech.de Git - timetracker.git/blobdiff - dbinstall.php
Switched from timestamp to created column in a query.
[timetracker.git] / dbinstall.php
index 7fb35e83119cac7d0bea933ce4d8a381cad6c81d..9f6972c93f0cfd5191093aaef44187296f5a0919 100644 (file)
@@ -851,6 +851,7 @@ if ($_POST) {
     setChange("ALTER TABLE `tt_teams` ADD `modified_ip` varchar(45) default NULL AFTER `modified`");
     setChange("ALTER TABLE `tt_teams` ADD `modified_by` int(11) default NULL AFTER `modified_ip`");
     setChange("UPDATE `tt_site_config` SET param_value = '1.17.65', modified = now() where param_name = 'version_db' and param_value = '1.17.64'");
+    setChange("update `tt_teams` t inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.17.65') set t.created = t.timestamp where t.created is null");
   }
 
   if ($_POST["cleanup"]) {