51 lines
1022 B
INI
51 lines
1022 B
INI
# Alembic configuration file for StemEngine backend.
|
|
#
|
|
# This file is referenced by `alembic upgrade head` / `alembic revision --autogenerate`.
|
|
# The database URL is resolved at runtime from the DB_PATH environment variable
|
|
# (see alembic/env.py) so this file does NOT contain a hard-coded URL.
|
|
|
|
[alembic]
|
|
# Path to the migration scripts directory, relative to this file.
|
|
script_location = alembic
|
|
|
|
# Template for new revision files.
|
|
file_template = %%(rev)s_%%(slug)s
|
|
|
|
# Timezone for timestamps in new revision files.
|
|
timezone = UTC
|
|
|
|
# Logging
|
|
[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
|