uranusjr opened a new pull request, #41850:
URL: https://github.com/apache/airflow/pull/41850

   These checks were put into place early in 2.x to add stricter constraints in 
the database. They are executed before the migrations when the user runs 
'airflow upgradedb' to make sure there are no data integrity issues that would 
fail the migration halfway, which is both difficult to debug and recover from.
   
   The checks always pass if the user is on a more recent Airflow 2 version, on 
which the constraints are now enforced by the database. Since we have removed 
all migration files prior to 2.10, the user must upgrade to at least 2.10 first 
(which has the checks) before upgrading to 3.0 anyway, so we can safely remove 
the checks going forward.
   
   (Additional context: these checks need to be modified if we are to rename 
`execution_date` on DagRun, which I’m doing in #41818. Instead of needing to 
work on the change, I think we should remove those checks since they don’t ever 
need to be run anyway.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to