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

   `airflow db downgrade -n 3.0.0` currently raises following error:
   
   ```
   airflow.exceptions.AirflowException: Downgrade to revision less than 3.0.0 
requires that `ab_user` table is present. Please add FabDBManager to [core] 
external_db_managers and run fab migrations before proceeding
   ```
   
   This is because, `list(script.revision_map.iterate_revisions(upper=this_rev, 
lower=base_rev))` returns an empty list instead of raising an error
   
   
![image](https://github.com/user-attachments/assets/fe9a619a-b125-4c0c-9aa0-428a1d4b10a5)
   
   
   Instead of directly returning True, we can just evaluate bool.
   
   Also, modifying run_generate_migration.sh to downgrade to 3.0.0 and generate 
the revision
   
   


-- 
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