Add a Rule to Check version of Database (MySQL / Postgres / SQLite) #13850
Labels
area:upgrade
Facilitating migration to a newer version of Airflow
kind:feature
Feature Requests
upgrade-check
upgrade-check CLI
Milestone
Many users are not sure about the requirements of the DB versions mentioned in https://github.com/apache/airflow#requirements and run into different errors.
We should have a "Check / Rule" in our Upgrade Check Plugin to warn users if they use a version that will be not compatible with 2.0.0
This issue is part of #8765
How to guide
To implement a new rule, create a class that inherits from
airflow.upgrade.rules.base_rule.BaseRule
.It will be auto-registered and used by
airflow upgrade-check
command. The custom rule class has to havetitle
,description
properties and should implementcheck
method which returns a list of error messages in case ofincompatibility.
For example:
airflow/airflow/upgrade/rules/conn_type_is_not_nullable.py
Lines 25 to 42 in ea36166
The text was updated successfully, but these errors were encountered: