ephraimbuddy commented on code in PR #24156:
URL: https://github.com/apache/airflow/pull/24156#discussion_r914846538


##########
airflow/utils/db.py:
##########
@@ -1480,6 +1498,10 @@ def upgradedb(
 
     with create_global_lock(session=session, lock=DBLocks.MIGRATIONS):
         log.info("Creating tables")
+        if not to_revision and not _get_current_revision(session=session):
+            # New DB; initialize and exit
+            initdb(session=session)

Review Comment:
   Fixed
   



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