Upload alembic.ini

This commit is contained in:
2026-06-03 23:52:00 +00:00
parent b4806d7f28
commit 8d62e8d22b
+55
View File
@@ -0,0 +1,55 @@
# 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