Files
bakery-ia/services/distribution/alembic.ini
2025-11-30 09:12:40 +01:00

88 lines
2.0 KiB
INI

# A generic, single database configuration.
[alembic]
# path to migration scripts
script_location = migrations
# template used to generate migration files
# file_template = %%(rev)s_%%(slug)s
# sys.path path, will be prepended to sys.path if present.
# defaults to the current working directory.
prepend_sys_path = .
# timezone to use when rendering the date within the migration file
# as well as the filename.
# If specified, requires the python-dateutil library that can be
# installed by adding `alembic[tz]` to the pip requirements
# string value is passed to dateutil.tz.gettz()
# leave blank for localtime
# timezone =
# max length of characters to apply to the
# "slug" field
# max_length = 40
# version number padding
pad_template = %%03d
# version table name
version_table = alembic_version
# name of the .ini file alembic is using
config_file = alembic.ini
# name of the alembic section in the ini file
# alembic_section = alembic
# name of the section that contains the database
# url - defaults to "alembic"
# sqlalchemy_url_section = alembic
# parameter denoting the staging environment
# (along with production, development)
# this is needed to correctly set the offline
# flag when running in a staging environment
# staging = staging
[post_write_hooks]
# post_write_hooks defines scripts or Python functions that are to be
# called automatically after a new revision file has been written.
# options include:
#
# hooks: space-separated list of hook functions to execute
# 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.stdout,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S