ephraimbuddy commented on code in PR #62234:
URL: https://github.com/apache/airflow/pull/62234#discussion_r2917669430
##########
providers/fab/src/airflow/providers/fab/auth_manager/models/__init__.py:
##########
@@ -38,15 +39,23 @@
func,
select,
)
-from sqlalchemy.orm import Mapped, backref, declared_attr, relationship
+from sqlalchemy.orm import Mapped, backref, declared_attr, registry,
relationship
from airflow.api_fastapi.auth.managers.models.base_user import BaseUser
+from airflow.models.base import _get_schema, naming_convention
from airflow.providers.common.compat.sqlalchemy.orm import mapped_column
"""
Compatibility note: The models in this file are duplicated from Flask
AppBuilder.
"""
+metadata = MetaData(schema=_get_schema(), naming_convention=naming_convention)
+_mapper_registry = registry(metadata=metadata)
Review Comment:
This was how it was before a change in airflow 3, see:
https://github.com/apache/airflow/blob/8bf498965c87d562486a8e9344ccdb84aa351b2d/airflow/providers/fab/auth_manager/models/__init__.py#L60-L70
It was removed here:
https://github.com/apache/airflow/commit/af2bd2671ddf67fc93ad433f4172dc55f738c03b
--
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]