alembic.ini 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. sqlalchemy.url = sqlite:///mediagoblin.db
  18. # Logging configuration
  19. [loggers]
  20. keys = root,sqlalchemy,alembic
  21. [handlers]
  22. keys = console
  23. [formatters]
  24. keys = generic
  25. [logger_root]
  26. level = WARN
  27. handlers = console
  28. qualname =
  29. [logger_sqlalchemy]
  30. level = WARN
  31. handlers =
  32. qualname = sqlalchemy.engine
  33. [logger_alembic]
  34. level = INFO
  35. handlers =
  36. qualname = alembic
  37. [handler_console]
  38. class = StreamHandler
  39. args = (sys.stderr,)
  40. level = NOTSET
  41. formatter = generic
  42. [formatter_generic]
  43. format = %(levelname)-5.5s [%(name)s] %(message)s
  44. datefmt = %H:%M:%S