
* added function to check if meta-field is defined by a plugin * hide un-defined meta-fields in details view * fix default charset = utf8mb4 * remove broken DATABASE_VERSION fallback * split off upgrade infos for version 1.x * fix page out of range #4279
3 KiB
Upgrading Kimai - Version2.x
Make sure to create a backup before you start!
Read the updates documentation to find out how you can upgrade your Kimai installation to the latest stable release.
Check below if there are more version specific steps required, which need to be executed after the normal update process. Perform EACH version specific task between your version and the new one, otherwise you risk data inconsistency or a broken installation.
2.0.30
The DATABASE_URL
in your environment settings (.env or in your Docker or webserver config)
now requires the charset
and serverVersion
params, e.g.: DATABASE_URL=mysql://user:password@127.0.0.1:3306/database?charset=utf8mb4&serverVersion=5.7
(examples in .env
).
2.0
!! This release requires minimum PHP version to 8.1 !!
Breaking changes
- All plugins need to be updated: delete all previous version from your installation (
rm -r var/plugins/*
) before updating! - The
local.yaml
is not compatible with old version, remove it before the update and then re-create it after everything works- dashboard default config
- removed: theme.branding.translation
- removed: kimai.plugin_dir
Developer
Developer read the full documentation at https://www.kimai.org/documentation/migration-v2.html.
- Invoice renderer and templates for XML, JSON and TEXT were moved to the Extended invoicing plugin (install if you use one of those)
- Moved
company.docx
to external repo (needs to be re-uploaded if you want to keep on using it!) - Role names are forced to be uppercase
- Removed unused
public/avatars/
directory - Time-tracking mode
duration_only
was removed, existing installations will be switched toduration_fixed_begin
- Removed Twig filters. You might have to replace them in your custom export/invoice templates:
date_full
=>date_time
duration_decimal
=>duration(true)
currency
=>currency_name
country
=>country_name
language
=>language_name
- Removed support for custom translation files (use TranslationBundle instead or write your own plugin)
- Removed all 3rd party mailer packages, you need to install them manually (ONLY if you used a short syntax to configure the
MAILER_URL
in.env
):composer require symfony/amazon-mailer
composer require symfony/google-mailer
composer require symfony/mailchimp-mailer
composer require symfony/mailgun-mailer
composer require symfony/postmark-mailer
composer require symfony/sendgrid-mailer