This commit is contained in:
felinae98 2022-03-20 00:11:32 +08:00
parent 7affe27316
commit 0bf530035c
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,7 @@ script_location = src/plugins/nonebot_bison/config/migrate
# sys.path path, will be prepended to sys.path if present.
# defaults to the current working directory.
prepend_sys_path = .
prepend_sys_path = ./src/plugins
# timezone to use when rendering the date within the migration file
# as well as the filename.

View File

@ -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: