Skip to content

Commit

Permalink
add naming convention back in
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Feb 4, 2024
1 parent a383557 commit 50c616c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@


class Base(DeclarativeBase):
# Recommended naming convention used by Alembic, as various different
# database providers will autogenerate vastly different names making
# migrations more difficult.
# See: https://alembic.sqlalchemy.org/en/latest/naming.html
metadata = MetaData(naming_convention={
"ix": "ix_%(column_0_label)s",
"uq": "uq_%(table_name)s_%(column_0_name)s",
Expand Down

0 comments on commit 50c616c

Please sign in to comment.