govorov/backend/alembic.ini

58 lines
1.2 KiB
INI

# A generic, single database configuration.
[alembic]
# path to migration scripts
script_location = alembic
# template for migration file names, e.g. "%%(rev)s_%%(slug)s.py"
# file_template = %%(rev)s_%%(slug)s
# timezone to use when rendering the date within the migration file
# as well as the filename.
# If specified, requires the python-dateutil library.
# Defaults to None if not specified.
# timezone =
# sys.path path, will be prepended to sys.path if present.
# defaults to the current working directory.
# prepend_sys_path = .
# 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
# Database connection (placeholder - needs to be configured)
# sqlalchemy.url = driver://user:pass@localhost/dbname
# sqlalchemy.url = sqlite:///./test.db
sqlalchemy.url = ${DATABASE_URL}