fix: update database URL to use 0.0.0.0 and adjust Alembic migration configurations

This commit is contained in:
Artem Kashaev
2025-11-27 12:36:49 +05:00
parent ad6283680b
commit 6d9387d1b4
4 changed files with 75 additions and 34 deletions
+10 -6
View File
@@ -1,30 +1,34 @@
[alembic]
script_location = migrations
file_template = %%(year)d%%(month)02d%%(day)02d_%%(hour)02d%%(minute)02d%%(second)d_%%(rev)s_%%(slug)s
prepend_sys_path = .
# SQLAlchemy database URL is injected from app.core.config.Settings (see migrations/env.py).
sqlalchemy.url =
[loggers]
keys = root,sqlalchemy,alembic
[handlers]
keys = console
[post_write_hooks]
hooks = ruff
ruff.type = exec
ruff.executable = %(here)s/.venv/bin/ruff
ruff.options = format REVISION_SCRIPT_FILENAME
[formatters]
keys = generic
[logger_root]
level = WARN
level = DEBUG
handlers = console
[logger_sqlalchemy]
level = WARN
level = DEBUG
handlers =
qualname = sqlalchemy.engine
[logger_alembic]
level = INFO
level = DEBUG
handlers = console
qualname = alembic