alembic.ini.template 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Alembic Configuration Template
  2. # Copy to alembic.ini and customize
  3. [alembic]
  4. # Path to migration scripts
  5. script_location = alembic
  6. # Template for new migration files
  7. file_template = %%(year)d%%(month).2d%%(day).2d_%%(hour).2d%%(minute).2d_%%(rev)s_%%(slug)s
  8. # Prepend sys.path for model imports
  9. prepend_sys_path = .
  10. # Timezone for file timestamps
  11. # timezone =
  12. # Max length for autogenerate identifiers
  13. # truncate_slug_length = 40
  14. # Post-write hooks
  15. # hooks = black
  16. # black.type = console_scripts
  17. # black.entrypoint = black
  18. # black.options = -q
  19. # Logging
  20. [loggers]
  21. keys = root,sqlalchemy,alembic
  22. [handlers]
  23. keys = console
  24. [formatters]
  25. keys = generic
  26. [logger_root]
  27. level = WARN
  28. handlers = console
  29. qualname =
  30. [logger_sqlalchemy]
  31. level = WARN
  32. handlers =
  33. qualname = sqlalchemy.engine
  34. [logger_alembic]
  35. level = INFO
  36. handlers =
  37. qualname = alembic
  38. [handler_console]
  39. class = StreamHandler
  40. args = (sys.stderr,)
  41. level = NOTSET
  42. formatter = generic
  43. [formatter_generic]
  44. format = %(levelname)-5.5s [%(name)s] %(message)s
  45. datefmt = %H:%M:%S