Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
feat: import models from domain to migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Mar 20, 2024
1 parent 81b1231 commit 6f2210b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/db/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

import sqlmodel

# importing domain models just for doing migration
# because the classes should be loaded before calling
# the migration.
from app import config
from app import domain as _

# create sqlite database
sqlite_url = f"sqlite:///{config.settings.database.database}"
Expand Down

0 comments on commit 6f2210b

Please sign in to comment.