From: Nik Okuntseff Date: Sun, 23 Dec 2018 14:42:04 +0000 (+0000) Subject: Fixed dbinstall.php for not null quota_percent. X-Git-Tag: timetracker_1.19-1~380 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=11cef71c5608efdf93d400622140ef48f08b18f6;p=timetracker.git Fixed dbinstall.php for not null quota_percent. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 0290a9f7..57e94258 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.36.4685 | Copyright © Anuko | +  Anuko Time Tracker 1.18.36.4686 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index 74d566cc..76a257ca 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -1044,6 +1044,8 @@ if ($_POST) { ttExecute("UPDATE `tt_site_config` SET param_value = '1.18.34', modified = now() where param_name = 'version_db' and param_value = '1.18.26'"); ttExecute("update `tt_users` u inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.34') set u.quota_percent = 100.00 where u.quota_percent is null"); ttExecute("UPDATE `tt_site_config` SET param_value = '1.18.36', modified = now() where param_name = 'version_db' and param_value = '1.18.34'"); + ttExecute("update `tt_users` u inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.36') set u.quota_percent = 100.00 where u.quota_percent is null"); + ttExecute("ALTER TABLE `tt_users` modify `quota_percent` float(6,2) NOT NULL default '100.00'"); } if ($_POST["cleanup"]) {