ashb commented on code in PR #42898:
URL: https://github.com/apache/airflow/pull/42898#discussion_r1796870272
##########
providers/src/airflow/providers/fab/auth_manager/models/__init__.py:
##########
@@ -58,12 +58,25 @@
"""
metadata = MetaData(schema=_get_schema(), naming_convention=naming_convention)
-mapper_registry = registry(metadata=metadata)
if
packaging.version.parse(packaging.version.parse(airflow_version).base_version)
>= packaging.version.parse(
"3.0.0"
):
+
+ class Model(DeclarativeBase):
+ """
+ Base class to ease transition to SQLAv2.
+
+ :meta private:
+ """
+
+ metadata = metadata
+ #
https://docs.sqlalchemy.org/en/20/changelog/migration_20.html#migration-20-step-six
+ __allow_unmapped__ = True
+
Model.metadata = metadata
+
+ flask_appbuilder.models.sqla.Model = Model
Review Comment:
This is almost certainly horribly horribly wrong.
--
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]