Pre-Check for upgrade conditions

Since many people ran into a problem with the latest database migration (see: MariaDB database migration failed. Schema 46->47 · Issue #125339 · home-assistant/core · GitHub) I propose the implementation of a pre-check for major changes in regard to disk space. Since all future migrations also will be using a mysql transaction this check could avoid these problems.