调整目录结构
This commit is contained in:
+3
-3
@@ -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.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user