Nessuna descrizione

alembic.ini 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. [alembic]
  2. # path to migration scripts
  3. script_location = app/alembic
  4. # template used to generate migration files
  5. # file_template = %%(rev)s_%%(slug)s
  6. # sys.path path, will be prepended to sys.path if present.
  7. # defaults to the current working directory.
  8. prepend_sys_path = .
  9. # timezone to use when rendering the date within the migration file
  10. # as well as the filename.
  11. # If specified, requires the python-dateutil library that can be
  12. # installed by adding `alembic[tz]` to the pip requirements
  13. # string value is passed to dateutil.tz.gettz()
  14. # leave blank for localtime
  15. # timezone =
  16. # max length of characters to apply to the
  17. # "slug" field
  18. # truncate_slug_length = 40
  19. # set to 'true' to run the environment during
  20. # the 'revision' command, regardless of autogenerate
  21. # revision_environment = false
  22. # set to 'true' to allow .pyc and .pyo files without
  23. # a source .py file to be detected as revisions in the
  24. # versions/ directory
  25. # sourceless = false
  26. # version location specification; This defaults
  27. # to alembic/versions. When using multiple version
  28. # directories, initial revisions must be specified with --version-path.
  29. # The path separator used here should be the separator specified by "version_path_separator"
  30. # version_locations = %(here)s/bar:%(here)s/bat:alembic/versions
  31. # version path separator; As mentioned above, this is the character used to split
  32. # version_locations. Valid values are:
  33. #
  34. # version_path_separator = :
  35. # version_path_separator = ;
  36. # version_path_separator = space
  37. version_path_separator = os # default: use os.pathsep
  38. # the output encoding used when revision files
  39. # are written from script.py.mako
  40. # output_encoding = utf-8
  41. #sqlalchemy.url = driver://user:pass@localhost/dbname
  42. [post_write_hooks]
  43. # post_write_hooks defines scripts or Python functions that are run
  44. # on newly generated revision scripts. See the documentation for further
  45. # detail and examples
  46. # format using "black" - use the console_scripts runner, against the "black" entrypoint
  47. # hooks = black
  48. # black.type = console_scripts
  49. # black.entrypoint = black
  50. # black.options = -l 79 REVISION_SCRIPT_FILENAME
  51. # Logging configuration
  52. [loggers]
  53. keys = root,sqlalchemy,app,alembic
  54. [handlers]
  55. keys = console
  56. [formatters]
  57. keys = generic
  58. [logger_root]
  59. level = WARN
  60. handlers = console
  61. qualname =
  62. [logger_sqlalchemy]
  63. level = WARN
  64. handlers =
  65. qualname = sqlalchemy.engine
  66. [logger_alembic]
  67. level = INFO
  68. handlers =
  69. qualname = alembic
  70. [logger_app]
  71. level = INFO
  72. handlers =
  73. qualname = app
  74. [handler_console]
  75. class = StreamHandler
  76. args = (sys.stderr,)
  77. level = NOTSET
  78. formatter = generic
  79. [formatter_generic]
  80. format = %(asctime)s :: %(levelname)s :: %(module)s :: %(funcName)s :: %(message)s
  81. datefmt = %Y-%m-%d %H:%M:%S