Skip to content

Commit

Permalink
Update sqlalchemy_schemadisplay to 2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Konecny <[email protected]>
  • Loading branch information
Zlopez committed Feb 15, 2024
1 parent f5e259f commit b43e2ad
Show file tree
Hide file tree
Showing 3 changed files with 293 additions and 25 deletions.
2 changes: 2 additions & 0 deletions docs/generate_db_schema
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Generate an image of the database schema
"""
from sqlalchemy_schemadisplay import create_schema_graph

from anitya.config import config
from anitya.db import meta


Expand All @@ -16,6 +17,7 @@ def write_graph(filename):
filename (str): Output file where image will be written
"""
graph = create_schema_graph(
engine=meta.initialize(config),
metadata=meta.metadata,
show_datatypes=False,
show_indexes=False,
Expand Down
Loading

0 comments on commit b43e2ad

Please sign in to comment.