Files
WhatsAppCentralizado/services/api-gateway/alembic.ini
Claude AI 1d34504d04 feat: add Alembic database migrations setup
- alembic.ini with configuration
- alembic/env.py with model imports and connection handling
- alembic/versions/ for migration scripts

This completes Fase 1 Foundation implementation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 10:02:10 +00:00

45 lines
667 B
INI

# Alembic configuration file
[alembic]
script_location = alembic
prepend_sys_path = .
version_path_separator = os
sqlalchemy.url = driver://user:pass@localhost/dbname
[post_write_hooks]
[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