potiuk commented on code in PR #44221:
URL: https://github.com/apache/airflow/pull/44221#discussion_r1864896036
##########
tests_common/test_utils/db.py:
##########
@@ -73,7 +73,12 @@ def initial_db_init():
from airflow.www.extensions.init_appbuilder import init_appbuilder
from airflow.www.extensions.init_auth_manager import get_auth_manager
+ from tests_common.test_utils.compat import AIRFLOW_V_3_0_PLUS
+
db.resetdb()
+ if AIRFLOW_V_3_0_PLUS:
+ db.downgrade(to_revision="5f2621c13b39")
+ db.upgradedb(to_revision="head")
Review Comment:
Yeah. One time only per session (and only when DB is not initialized or when
`--with-db-init`) - so optimising it is not really needed.
--
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]