From 8d62e8d22bf548947ee8f61f153dedc08f901c4a Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Wed, 3 Jun 2026 23:52:00 +0000 Subject: [PATCH] Upload alembic.ini --- alembic.ini | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 alembic.ini diff --git a/alembic.ini b/alembic.ini new file mode 100644 index 0000000..dbda91c --- /dev/null +++ b/alembic.ini @@ -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