Skip to content

Commit

Permalink
Fix Alembic auto-generation
Browse files Browse the repository at this point in the history
You need to import `via.models` in `env.py` so that Alembic migration
auto-generation works.
  • Loading branch information
seanh committed Jul 31, 2023
1 parent 31db832 commit 96a50e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions via/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from alembic import context
from sqlalchemy import engine_from_config, pool

from via import models
from via.db import Base

# this is the Alembic Config object, which provides
Expand Down

0 comments on commit 96a50e3

Please sign in to comment.