45 lines
752 B
INI
45 lines
752 B
INI
|
[alembic]
|
||
|
file_template = rev_%%(year)d%%(month).2d%%(day).2d_%%(hour).2d_%%(rev)s_%%(slug)s
|
||
|
script_location = %(here)s/migrations
|
||
|
|
||
|
[post_write_hooks]
|
||
|
hooks=black
|
||
|
black.type=console_scripts
|
||
|
black.entrypoint=black
|
||
|
|
||
|
# The following is taken from the default alembic.ini file.
|
||
|
|
||
|
[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
|