Skip to content

Commit

Permalink
Use AdvancedAlchemy internal metadata as canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
riyavsinha authored Jan 1, 2025
1 parent 67b85e2 commit 7ad3383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import typing

import sqlalchemy as sa
from advanced_alchemy.base import BigIntAuditBase
from advanced_alchemy.base import BigIntAuditBase, orm_registry
from sqlalchemy import orm


METADATA: typing.Final = sa.MetaData()
METADATA: typing.Final = orm_registry.metadata
orm.DeclarativeBase.metadata = METADATA


Expand Down

0 comments on commit 7ad3383

Please sign in to comment.