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


##########
airflow/utils/db.py:
##########
@@ -1487,6 +1513,12 @@ def upgradedb(
     if errors_seen:
         exit(1)
 
+    if not to_revision and not _get_current_revision(session=session):
+        # Don't load default connections
+        os.environ['AIRFLOW__DATABASE__LOAD_DEFAULT_CONNECTIONS'] = 'False'

Review Comment:
   I wonder if this should be an argument to initdb ot something. Setting an 
environment variable here feels heavy-handed.



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