openshift_alembic.ini 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # A generic, single database configuration.
  2. [alembic]
  3. # path to migration scripts
  4. script_location = /code/alembic
  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 = driver://user:pass@localhost/dbname
  18. sqlalchemy.url = postgresql://pagure:pagure@postgresql/pagure
  19. # Logging configuration
  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