X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/7bafd815e19a8c4535a3684c01955fe7b789982d..2e02b27f8c392d5a2f446f7b51982175e9bf32c4:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index 07cb37d7..5c02031f 100755 --- a/dbinstall.php +++ b/dbinstall.php @@ -709,7 +709,7 @@ if ($_POST) { setChange("ALTER TABLE `tt_log` ADD `paid` tinyint(4) NULL default '0' AFTER `billable`"); } - if ($_POST["convert11400to11719"]) { + if ($_POST["convert11400to11727"]) { setChange("ALTER TABLE `tt_teams` DROP `address`"); setChange("ALTER TABLE `tt_fav_reports` ADD `report_spec` text default NULL AFTER `user_id`"); setChange("ALTER TABLE `tt_fav_reports` ADD `paid_status` tinyint(4) default NULL AFTER `invoice`"); @@ -725,6 +725,10 @@ if ($_POST) { setChange("UPDATE `tt_monthly_quotas` SET `minutes` = 60 * `quota`"); setChange("ALTER TABLE `tt_monthly_quotas` DROP `quota`"); setChange("ALTER TABLE `tt_teams` DROP `uncompleted_indicators`"); + setChange("ALTER TABLE `tt_users` MODIFY `timestamp` timestamp default CURRENT_TIMESTAMP"); + setChange("ALTER TABLE `tt_teams` MODIFY `timestamp` timestamp default CURRENT_TIMESTAMP"); + setChange("ALTER TABLE `tt_log` MODIFY `timestamp` timestamp default CURRENT_TIMESTAMP"); + setChange("ALTER TABLE `tt_tmp_refs` MODIFY `timestamp` timestamp default CURRENT_TIMESTAMP"); } if ($_POST["cleanup"]) { @@ -769,7 +773,7 @@ if ($_POST) {
| Create database structure (v1.17.19) + | Create database structure (v1.17.27)
(applies only to new installations, do not execute when updating) |