2025-09-29 19:16:34 +02:00
|
|
|
# ================================================================
|
|
|
|
|
# services/notification/alembic.ini - Alembic Configuration
|
|
|
|
|
# ================================================================
|
2025-08-13 17:39:35 +02:00
|
|
|
[alembic]
|
|
|
|
|
# path to migration scripts
|
|
|
|
|
script_location = migrations
|
|
|
|
|
|
2025-09-29 19:16:34 +02:00
|
|
|
# template used to generate migration file names
|
|
|
|
|
file_template = %%(year)d%%(month).2d%%(day).2d_%%(hour).2d%%(minute).2d_%%(rev)s_%%(slug)s
|
2025-08-13 17:39:35 +02:00
|
|
|
|
|
|
|
|
# sys.path path, will be prepended to sys.path if present.
|
|
|
|
|
prepend_sys_path = .
|
|
|
|
|
|
|
|
|
|
# timezone to use when rendering the date within the migration file
|
|
|
|
|
# as well as the filename.
|
2025-09-29 19:16:34 +02:00
|
|
|
timezone = Europe/Madrid
|
2025-08-13 17:39:35 +02:00
|
|
|
|
|
|
|
|
# max length of characters to apply to the
|
|
|
|
|
# "slug" field
|
2025-09-29 19:16:34 +02:00
|
|
|
truncate_slug_length = 40
|
2025-08-13 17:39:35 +02:00
|
|
|
|
|
|
|
|
# set to 'true' to run the environment during
|
|
|
|
|
# the 'revision' command, regardless of autogenerate
|
2025-09-29 19:16:34 +02:00
|
|
|
revision_environment = false
|
2025-08-13 17:39:35 +02:00
|
|
|
|
|
|
|
|
# set to 'true' to allow .pyc and .pyo files without
|
|
|
|
|
# a source .py file to be detected as revisions in the
|
|
|
|
|
# versions/ directory
|
2025-09-29 19:16:34 +02:00
|
|
|
sourceless = false
|
|
|
|
|
|
|
|
|
|
# version of a migration file's filename format
|
2025-09-30 08:12:45 +02:00
|
|
|
version_num_format = %%s
|
2025-08-13 17:39:35 +02:00
|
|
|
|
2025-09-29 19:16:34 +02:00
|
|
|
# version path separator
|
|
|
|
|
version_path_separator = os
|
2025-08-13 17:39:35 +02:00
|
|
|
|
2025-09-29 19:16:34 +02:00
|
|
|
# set to 'true' to search source files recursively
|
|
|
|
|
# in each "version_locations" directory
|
|
|
|
|
recursive_version_locations = false
|
2025-08-13 17:39:35 +02:00
|
|
|
|
|
|
|
|
# the output encoding used when revision files
|
|
|
|
|
# are written from script.py.mako
|
2025-09-29 19:16:34 +02:00
|
|
|
output_encoding = utf-8
|
2025-08-13 17:39:35 +02:00
|
|
|
|
2025-09-29 19:16:34 +02:00
|
|
|
# Database URL - will be overridden by environment variable or settings
|
|
|
|
|
sqlalchemy.url = postgresql+asyncpg://notification_user:password@notification-db-service:5432/notification_db
|
2025-08-13 17:39:35 +02:00
|
|
|
|
|
|
|
|
[post_write_hooks]
|
|
|
|
|
# post_write_hooks defines scripts or Python functions that are run
|
2025-09-29 19:16:34 +02:00
|
|
|
# on newly generated revision scripts.
|
2025-08-13 17:39:35 +02:00
|
|
|
|
|
|
|
|
[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
|
2025-09-29 19:16:34 +02:00
|
|
|
datefmt = %H:%M:%S
|