X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=dbinstall.php;h=4d4de7e8e232e9ece7c212186ef6a382289473fa;hb=3d6a515a50d61cf1c234cd6775c925246b8a95b0;hp=9a2078e08059b5be9026516e2d52ba3e2b3e06a4;hpb=a4314b66a96faca049fe6b383302b58a47d93848;p=timetracker.git diff --git a/dbinstall.php b/dbinstall.php index 9a2078e0..4d4de7e8 100755 --- a/dbinstall.php +++ b/dbinstall.php @@ -709,11 +709,22 @@ if ($_POST) { setChange("ALTER TABLE `tt_log` ADD `paid` tinyint(4) NULL default '0' AFTER `billable`"); } - if ($_POST["convert11400to11600"]) { + if ($_POST["convert11400to11719"]) { 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`"); setChange("ALTER TABLE `tt_fav_reports` ADD `show_paid` tinyint(4) NOT NULL DEFAULT '0' AFTER `show_invoice`"); + setChange("ALTER TABLE `tt_expense_items` ADD `paid` tinyint(4) NULL default '0' AFTER `invoice_id`"); + setChange("ALTER TABLE `tt_monthly_quotas` MODIFY `quota` decimal(5,2) NOT NULL"); + setChange("ALTER TABLE `tt_teams` MODIFY `workday_hours` decimal(5,2) DEFAULT '8.00'"); + setChange("ALTER TABLE `tt_teams` ADD `config` text default NULL AFTER `custom_logo`"); + setChange("ALTER TABLE `tt_monthly_quotas` ADD `minutes` int(11) DEFAULT NULL"); + setChange("ALTER TABLE `tt_teams` ADD `workday_minutes` smallint(4) DEFAULT '480' AFTER `workday_hours`"); + setChange("UPDATE `tt_teams` SET `workday_minutes` = 60 * `workday_hours`"); + setChange("ALTER TABLE `tt_teams` DROP `workday_hours`"); + 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`"); } if ($_POST["cleanup"]) { @@ -758,7 +769,7 @@ if ($_POST) {

DB Install

-
Create database structure (v1.16.0) + Create database structure (v1.17.19)
(applies only to new installations, do not execute when updating)
@@ -794,8 +805,8 @@ if ($_POST) {
- Update database structure (v1.14 to v1.16) -
+ Update database structure (v1.14 to v1.17.19) +