# A generic, single-database Alembic configuration for the CRM System.

[alembic]
# Path to migration scripts (relative to alembic.ini location).
prepend_sys_path = .

# Timezone for create date in migration files (UTC).
timezone = UTC

# Max identifier length (PostgreSQL compatibility).
truncate_slug_length = 40

# Set in env.py via app.core.config — do NOT hardcode here.
sqlalchemy.url =

# Migration script location.
script_location = alembic

# File template for version files.
file_template = %%(year)d%%(month).2d%%(day).2d_%%(hour).2d%%(minute).2d_%%(rev)s_%%(slug)s

# Logging configuration.
[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
