50 lines
1.0 KiB
INI
50 lines
1.0 KiB
INI
# ©AngelaMos | 2026
|
|
# alembic.ini
|
|
#
|
|
# Alembic database migration configuration
|
|
#
|
|
# Points script_location to the alembic/ directory and sets
|
|
# the default asyncpg connection URL (overridden at runtime
|
|
# by env.py from settings). Configures Python logging with
|
|
# WARN level for root and sqlalchemy.engine, INFO for
|
|
# alembic, all routed to a stderr console handler with
|
|
# generic format. Connects to alembic/env.py,
|
|
# alembic/versions/, app/config
|
|
|
|
[alembic]
|
|
script_location = alembic
|
|
sqlalchemy.url = postgresql+asyncpg://vigil:changeme@localhost:5432/angelusvigil
|
|
|
|
[loggers]
|
|
keys = root,sqlalchemy,alembic
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = generic
|
|
|
|
[logger_root]
|
|
level = WARN
|
|
handlers = console
|
|
|
|
[logger_sqlalchemy]
|
|
level = WARN
|
|
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
|