In #489 we introduced automatic database upgrade during initialization.
We do not put Matomo into maintenance mode yet. This will make the upgrade more secure as user are not allowed to perform actions against the database.
See https://matomo.org/faq/how-to/faq_111/ for more information.