Added alembic configuration

This commit is contained in:
2025-09-22 19:55:39 +01:00
parent e0628cd9fd
commit bfc6cbf7d9
5 changed files with 108 additions and 2 deletions

39
alembic.ini Normal file
View File

@@ -0,0 +1,39 @@
[alembic]
# Path to migration scripts
script_location = alembic
# Set to 'true' to auto-generate migrations with naming convention support
timezone = UTC
[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