X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=dbinstall.php;h=097d2abe5626180c7fa300774661b81e8c0bf1eb;hb=3be2bc61911ea52fb39774f7e569f7f9f2552b58;hp=5144d1962eef8571c7ca7739414f25f8233e5ae0;hpb=0d76b58c818306b35261dd21fd998b9f5fb0a903;p=timetracker.git diff --git a/dbinstall.php b/dbinstall.php index 5144d196..097d2abe 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -956,6 +956,13 @@ if ($_POST) { print "Updated $tt_expense_items_updated tt_expense_items records...
\n"; } + if ($_POST["convert11797to11800"]) { + 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`"); + setChange("UPDATE `tt_site_config` SET param_value = '1.18.00', modified = now() where param_name = 'version_db' and param_value = '1.17.97'"); + } + if ($_POST["cleanup"]) { $mdb2 = getConnection(); @@ -999,7 +1006,7 @@ if ($_POST) {

DB Install

-
Create database structure (v1.17.97) + Create database structure (v1.18.00)
(applies only to new installations, do not execute when updating)
@@ -1040,7 +1047,12 @@ if ($_POST) { Update database structure (v1.17.44 to v1.17.97) -
+
+ + + + Update database structure (v1.17.97 to v1.18.00) +