Configure alembic to use dotenv
This commit is contained in:
parent
14bcf93be3
commit
49f84755f1
1 changed files with 3 additions and 0 deletions
|
@ -1,9 +1,12 @@
|
|||
from logging.config import fileConfig
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from sqlalchemy import create_engine
|
||||
from alembic import context
|
||||
|
||||
load_dotenv()
|
||||
|
||||
# Import models for autogenerate support
|
||||
from app.database import Base
|
||||
from app.models import *
|
||||
|
|
Loading…
Add table
Reference in a new issue