72 lines
1.3 KiB
INI
72 lines
1.3 KiB
INI
[alembic]
|
|
|
|
# Location of migration scripts
|
|
script_location = migrations
|
|
|
|
# Add project root to sys.path
|
|
prepend_sys_path = .
|
|
|
|
# Cross-platform path separator
|
|
version_path_separator = os
|
|
|
|
# Version file naming
|
|
file_template = %(year)d_%(month).2d_%(day).2d_%(hour).2d%(minute).2d_%(slug)s
|
|
|
|
# Timezone for migration timestamps
|
|
timezone = UTC
|
|
|
|
# Encoding for generated files
|
|
output_encoding = utf-8
|
|
|
|
# Migration locations
|
|
version_locations = migrations/versions
|
|
|
|
# Allow nested migration directories
|
|
recursive_version_locations = true
|
|
|
|
# Database URL should be provided via env.py / environment variables
|
|
sqlalchemy.url =
|
|
|
|
|
|
# =============================================================================
|
|
# Logging
|
|
# =============================================================================
|
|
|
|
[loggers]
|
|
keys = root,sqlalchemy,alembic
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = default
|
|
|
|
|
|
[logger_root]
|
|
level = WARN
|
|
handlers = console
|
|
|
|
|
|
[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 = default
|
|
|
|
|
|
[formatter_default]
|
|
format = %(asctime)s | %(levelname)s | %(name)s | %(message)s
|
|
datefmt = %Y-%m-%d %H:%M:%S
|