46 lines
987 B
INI
46 lines
987 B
INI
# Alembic config for manual CLI use during development, e.g.:
|
|
# cd containers/clearview && DATABASE_URL=postgresql://... PYTHONPATH=src alembic revision -m "msg"
|
|
#
|
|
# The application itself does NOT read this file: clearview_app.db_migrate builds
|
|
# an Alembic Config programmatically and env.py takes the database URL from
|
|
# DATABASE_URL via clearview_app.config. sqlalchemy.url is therefore left blank.
|
|
|
|
[alembic]
|
|
script_location = src/clearview_app/migrations
|
|
prepend_sys_path = src
|
|
sqlalchemy.url =
|
|
|
|
[loggers]
|
|
keys = root,sqlalchemy,alembic
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = generic
|
|
|
|
[logger_root]
|
|
level = WARNING
|
|
handlers = console
|
|
qualname =
|
|
|
|
[logger_sqlalchemy]
|
|
level = WARNING
|
|
handlers =
|
|
qualname = sqlalchemy.engine
|
|
|
|
[logger_alembic]
|
|
level = INFO
|
|
handlers =
|
|
qualname = alembic
|
|
|
|
[handler_console]
|
|
class = StreamHandler
|
|
args = (sys.stderr,)
|
|
level = NOTSET
|
|
formatter = generic
|
|
|
|
[formatter_generic]
|
|
format = %(levelname)-5.5s [%(name)s] %(message)s
|
|
datefmt = %H:%M:%S
|