Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

1.0 KB
Raw Blame
# ©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