config.ini.sample 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # A generic, single database configuration.
  2. [alembic]
  3. # path to migration scripts
  4. script_location = config
  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. #sqlalchemy.url = driver://user:pass@localhost/dbname
  14. #sqlalchemy.url = postgresql://user:pass@localhost/asterisk
  15. sqlalchemy.url = mysql://user:pass@localhost/asterisk
  16. # Logging configuration
  17. [loggers]
  18. keys = root,sqlalchemy,alembic
  19. [handlers]
  20. keys = console
  21. [formatters]
  22. keys = generic
  23. [logger_root]
  24. level = WARN
  25. handlers = console
  26. qualname =
  27. [logger_sqlalchemy]
  28. level = WARN
  29. handlers =
  30. qualname = sqlalchemy.engine
  31. [logger_alembic]
  32. level = INFO
  33. handlers =
  34. qualname = alembic
  35. [handler_console]
  36. class = StreamHandler
  37. args = (sys.stderr,)
  38. level = NOTSET
  39. formatter = generic
  40. [formatter_generic]
  41. format = %(levelname)-5.5s [%(name)s] %(message)s
  42. datefmt = %H:%M:%S