alembic.ini 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Alembic configuration file
  2. [alembic]
  3. # Path to migration scripts
  4. script_location = alembic
  5. # Template used to generate migration files
  6. file_template = %%(year)d%%(month).2d%%(day).2d_%%(hour).2d%%(minute).2d_%%(rev)s_%%(slug)s
  7. # Timezone for generating revision timestamps
  8. timezone = UTC
  9. # Max length of characters to apply to the "slug" field
  10. truncate_slug_length = 40
  11. # Set to 'true' to run the environment during the 'revision' command
  12. # revision_environment = false
  13. # Set to 'true' to allow .pyc and .pyo files without a source .py file
  14. # sourceless = false
  15. # Version location specification
  16. version_locations = %(here)s/alembic/versions
  17. # Version path separator
  18. version_path_separator = os
  19. # The output encoding used when revision files are written
  20. output_encoding = utf-8
  21. # Database URL - will be overridden by env.py
  22. sqlalchemy.url = postgresql+asyncpg://mybeacon:mybeacon@localhost/mybeacon
  23. [post_write_hooks]
  24. # Post-write hooks
  25. # hook_name = <module_path>:<function_name>
  26. # Logging configuration
  27. [loggers]
  28. keys = root,sqlalchemy,alembic
  29. [handlers]
  30. keys = console
  31. [formatters]
  32. keys = generic
  33. [logger_root]
  34. level = WARN
  35. handlers = console
  36. qualname =
  37. [logger_sqlalchemy]
  38. level = WARN
  39. handlers =
  40. qualname = sqlalchemy.engine
  41. [logger_alembic]
  42. level = INFO
  43. handlers =
  44. qualname = alembic
  45. [handler_console]
  46. class = StreamHandler
  47. args = (sys.stderr,)
  48. level = NOTSET
  49. formatter = generic
  50. [formatter_generic]
  51. format = %(levelname)-5.5s [%(name)s] %(message)s
  52. datefmt = %H:%M:%S