This commit is contained in:
felinae98
2022-03-20 00:11:32 +08:00
parent 7affe27316
commit 0bf530035c
2 changed files with 5 additions and 3 deletions
@@ -9,13 +9,15 @@ config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
fileConfig(config.config_file_name)
fileConfig(config.config_file_name) # type:ignore
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
from ..db_model import Base
target_metadata = Base.metadata
# other values from the config, defined by the needs of env.py,
# can be acquired: