alembic.ini 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # A generic, single database configuration.
  18. [alembic]
  19. # path to migration scripts
  20. script_location = migrations
  21. # template used to generate migration files
  22. # file_template = %%(rev)s_%%(slug)s
  23. # max length of characters to apply to the
  24. # "slug" field
  25. #truncate_slug_length = 40
  26. # set to 'true' to run the environment during
  27. # the 'revision' command, regardless of autogenerate
  28. # revision_environment = false
  29. # set to 'true' to allow .pyc and .pyo files without
  30. # a source .py file to be detected as revisions in the
  31. # versions/ directory
  32. # sourceless = false
  33. # version location specification; this defaults
  34. # to help/versions. When using multiple version
  35. # directories, initial revisions must be specified with --version-path
  36. # version_locations = %(here)s/bar %(here)s/bat help/versions
  37. # the output encoding used when revision files
  38. # are written from script.py.mako
  39. # output_encoding = utf-8
  40. sqlalchemy.url = scheme://localhost/superset
  41. # Logging configuration
  42. [loggers]
  43. keys = root,sqlalchemy,alembic
  44. [handlers]
  45. keys = console
  46. [formatters]
  47. keys = generic
  48. [logger_root]
  49. level = WARN
  50. handlers = console
  51. qualname =
  52. [logger_sqlalchemy]
  53. level = WARN
  54. handlers =
  55. qualname = sqlalchemy.engine
  56. [logger_alembic]
  57. level = INFO
  58. handlers =
  59. qualname = alembic
  60. [handler_console]
  61. class = StreamHandler
  62. args = (sys.stderr,)
  63. level = NOTSET
  64. formatter = generic
  65. [formatter_generic]
  66. format = %(levelname)-5.5s [%(name)s] %(message)s
  67. datefmt = %H:%M:%S