# Alembic 配置文件
# 这个文件包含了 Alembic 的基本配置

[alembic]
# 迁移脚本的路径
script_location = migrations

# 模板使用的 jinja2 格式
output_encoding = utf-8

# 数据库连接配置
# 实际使用时，这个值会被 env.py 中的配置覆盖
sqlalchemy.url = driver://user:pass@localhost/dbname

# 日志配置
[loggers]
keys = root,sqlalchemy,alembic

[handlers]
keys = console

[formatters]
keys = generic

[logger_root]
level = WARN
handlers = console
qualname =

[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 