X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/bcbff1b505f315c05b45e5a2eaa707ed574d1a9a..85329fe7459e5892082de3bd40459e7dfdb36f11:/dbinstall.php 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) +