mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-08 03:28:35 +03:00
Format and lint migrations directory (#59)
This commit is contained in:
@@ -9,11 +9,14 @@ from app.shared.settings import get_settings
|
||||
# this is the Alembic Config object, which provides
|
||||
# access to the values within the .ini file in use.
|
||||
config = context.config
|
||||
config.set_main_option('sqlalchemy.url', get_settings().DATABASE_PATH)
|
||||
config.set_main_option("sqlalchemy.url", get_settings().DATABASE_PATH)
|
||||
# Interpret the config file for Python logging.
|
||||
# This line sets up loggers basically.
|
||||
if config.config_file_name is not None:
|
||||
fileConfig(config.config_file_name, disable_existing_loggers=False) # disable_existing_loggers prevents loguru disabling
|
||||
# disable_existing_loggers prevents loguru disabling
|
||||
fileConfig(
|
||||
config.config_file_name, disable_existing_loggers=False
|
||||
)
|
||||
|
||||
# add your model's MetaData object here
|
||||
# for 'autogenerate' support
|
||||
|
||||
Reference in New Issue
Block a user