X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/4da474b3fee7606ff8ce81b9e9c9d1fe82a82bdc..1a7f5dda663493a6ea33a86a58b3caab7fd94062:/dbinstall.php
diff --git a/dbinstall.php b/dbinstall.php
index d150e735..8a6d66fd 100644
--- a/dbinstall.php
+++ b/dbinstall.php
@@ -956,7 +956,7 @@ if ($_POST) {
print "Updated $tt_expense_items_updated tt_expense_items records...
\n";
}
- if ($_POST["convert11797to11812"]) {
+ if ($_POST["convert11797to11813"]) {
setChange("ALTER TABLE `tt_fav_reports` CHANGE `group_by` `group_by1` varchar(20) default NULL");
setChange("ALTER TABLE `tt_fav_reports` ADD `group_by2` varchar(20) default NULL AFTER `group_by1`");
setChange("ALTER TABLE `tt_fav_reports` ADD `group_by3` varchar(20) default NULL AFTER `group_by2`");
@@ -989,6 +989,7 @@ if ($_POST) {
setChange("ALTER TABLE `tt_project_task_binds` ADD `group_id` int(11) default NULL AFTER `task_id`");
setChange("ALTER TABLE `tt_project_task_binds` ADD `org_id` int(11) default NULL AFTER `group_id`");
setChange("UPDATE `tt_site_config` SET param_value = '1.18.12', modified = now() where param_name = 'version_db' and param_value = '1.18.11'");
+ setChange("UPDATE `tt_site_config` SET param_value = '1.18.13', modified = now() where param_name = 'version_db' and param_value = '1.18.12'");
// TODO: this does not work as we just introduced group_id and it is NULL. Same for tt_project_task_binds. Improve.
// setChange("UPDATE `tt_user_project_binds` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.12') set org_id = group_id where org_id is null");
}
@@ -1036,7 +1037,7 @@ if ($_POST) {
| Create database structure (v1.18.12) + | Create database structure (v1.18.13)
(applies only to new installations, do not execute when updating) |