alembic.ini 1.6 KB

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