# Alembic configuration. # # `sqlalchemy.url` is deliberately absent: the URL carries the database # password, it already lives in the environment, and a second copy in a # committed file is both a leak and a way for migrations to run against a # different database than the application. `migrations/env.py` reads it from # `foilstack.config`. [alembic] script_location = %(here)s/src/foilstack/migrations file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s prepend_sys_path = src path_separator = os [post_write_hooks] [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