调整目录结构

This commit is contained in:
zhengxinonly
2021-06-12 21:20:13 +08:00
parent 48633729fb
commit d9a5bcb0de
590 changed files with 1072 additions and 1160 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ from alembic import context
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# Interpret the configs file for Python logging.
# This line sets up loggers basically.
fileConfig(config.config_file_name)
logger = logging.getLogger('alembic.env')
@@ -27,9 +27,9 @@ config.set_main_option(
str(current_app.extensions['migrate'].db.engine.url).replace('%', '%%'))
target_metadata = current_app.extensions['migrate'].db.metadata
# other values from the config, defined by the needs of env.py,
# other values from the configs, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# my_important_option = configs.get_main_option("my_important_option")
# ... etc.