ephraimbuddy commented on code in PR #66674:
URL: https://github.com/apache/airflow/pull/66674#discussion_r3227113610
##########
airflow-core/src/airflow/utils/db_manager.py:
##########
@@ -189,10 +220,15 @@ def upgradedb(self, to_revision=None, from_revision=None,
show_sql_only=False, u
self._release_metadata_locks_if_needed()
if not current_revision and not to_revision and not
use_migration_files and not show_sql_only:
- self.create_db_from_orm()
- return
+ if self._has_existing_manager_tables():
+ config = self.get_alembic_config()
+ self._stamp_base_revision(config)
+ else:
+ self.create_db_from_orm()
+ return
Review Comment:
This looks to me like something that has to do with the setup of the
external db and not here.
--
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]