alembic.ini 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. [alembic]
  2. # path to migration scripts
  3. script_location = alembic
  4. # template used to generate migration files
  5. # file_template = %%(rev)s_%%(slug)s
  6. # timezone to use when rendering the date
  7. # within the migration file as well as the filename.
  8. # string value is passed to dateutil.tz.gettz()
  9. # leave blank for localtime
  10. timezone = 'UTC'
  11. # max length of characters to apply to the
  12. # "slug" field
  13. #truncate_slug_length = 40
  14. # set to 'true' to run the environment during
  15. # the 'revision' command, regardless of autogenerate
  16. # revision_environment = false
  17. # set to 'true' to allow .pyc and .pyo files without
  18. # a source .py file to be detected as revisions in the
  19. # versions/ directory
  20. # sourceless = false
  21. # version location specification; this defaults
  22. # to alembic/versions. When using multiple version
  23. # directories, initial revisions must be specified with --version-path
  24. # version_locations = %(here)s/bar %(here)s/bat alembic/versions
  25. # the output encoding used when revision files
  26. # are written from script.py.mako
  27. # output_encoding = utf-8
  28. sqlalchemy.url = postgresql:///projectb
  29. # Logging configuration
  30. [loggers]
  31. keys = root,sqlalchemy,alembic
  32. [handlers]
  33. keys = console
  34. [formatters]
  35. keys = generic
  36. [logger_root]
  37. level = WARN
  38. handlers = console
  39. qualname =
  40. [logger_sqlalchemy]
  41. level = WARN
  42. handlers =
  43. qualname = sqlalchemy.engine
  44. [logger_alembic]
  45. level = INFO
  46. handlers =
  47. qualname = alembic
  48. [handler_console]
  49. class = StreamHandler
  50. args = (sys.stderr,)
  51. level = NOTSET
  52. formatter = generic
  53. [formatter_generic]
  54. format = %(levelname)-5.5s [%(name)s] %(message)s
  55. datefmt = %H:%M:%S