]> wagnertech.de Git - timetracker.git/commitdiff
Fixing org_id for existing groups.
authorNik Okuntseff <support@anuko.com>
Fri, 2 Nov 2018 12:55:44 +0000 (12:55 +0000)
committerNik Okuntseff <support@anuko.com>
Fri, 2 Nov 2018 12:55:44 +0000 (12:55 +0000)
WEB-INF/templates/footer.tpl
dbinstall.php
mysql.sql

index 80c89105860bd9d6d54fe388741b5194a6a0d70e..74ea3c29be0f13c0e92dbd3b8d8bdaf3ab7a8761 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.06.4347 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.06.4348 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index f6fd0c1b5835a4b272f4142dfcbd1dfce6c1b492..9e71651ef209fc257ff6edbac2ce62259b4c0249 100644 (file)
@@ -963,6 +963,8 @@ if ($_POST) {
     setChange("UPDATE `tt_site_config` SET param_value = '1.18.00', modified = now() where param_name = 'version_db' and param_value = '1.17.97'");
     setChange("create index log_idx on tt_custom_field_log(log_id)");
     setChange("UPDATE `tt_site_config` SET param_value = '1.18.05', modified = now() where param_name = 'version_db' and param_value = '1.18.00'");
+    setChange("update `tt_groups` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.05') set org_id = id where org_id is null");
+    setChange("UPDATE `tt_site_config` SET param_value = '1.18.06', modified = now() where param_name = 'version_db' and param_value = '1.18.05'");
   }
 
   if ($_POST["cleanup"]) {
index 955f1b29c086903b815cf8b4ca65c527375b90f3..3c2b786a3c164d8d589d9850a0ed305cc7223517 100644 (file)
--- a/mysql.sql
+++ b/mysql.sql
@@ -458,4 +458,4 @@ CREATE TABLE `tt_site_config` (
   PRIMARY KEY  (`param_name`)
 );
 
-INSERT INTO `tt_site_config` (`param_name`, `param_value`, `created`) VALUES ('version_db', '1.18.05', now()); # TODO: change when structure changes.
+INSERT INTO `tt_site_config` (`param_name`, `param_value`, `created`) VALUES ('version_db', '1.18.06', now()); # TODO: change when structure changes.