alembic.ini 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # A generic, single database configuration.
  2. [alembic]
  3. # path to migration scripts
  4. script_location = %(here)s/mediagoblin/db/migrations
  5. # template used to generate migration files
  6. # file_template = %%(rev)s_%%(slug)s
  7. # max length of characters to apply to the
  8. # "slug" field
  9. #truncate_slug_length = 40
  10. # set to 'true' to run the environment during
  11. # the 'revision' command, regardless of autogenerate
  12. # revision_environment = false
  13. # set to 'true' to allow .pyc and .pyo files without
  14. # a source .py file to be detected as revisions in the
  15. # versions/ directory
  16. # sourceless = false
  17. # Logging configuration
  18. [loggers]
  19. keys = root,sqlalchemy,alembic
  20. [handlers]
  21. keys = console
  22. [formatters]
  23. keys = generic
  24. [logger_root]
  25. level = WARN
  26. handlers = console
  27. qualname =
  28. [logger_sqlalchemy]
  29. level = WARN
  30. handlers =
  31. qualname = sqlalchemy.engine
  32. [logger_alembic]
  33. level = INFO
  34. handlers =
  35. qualname = alembic
  36. [handler_console]
  37. class = StreamHandler
  38. args = (sys.stderr,)
  39. level = NOTSET
  40. formatter = generic
  41. [formatter_generic]
  42. format = %(levelname)-5.5s [%(name)s] %(message)s
  43. datefmt = %H:%M:%S