1+ # A generic, single database configuration.
2+
3+ [alembic]
4+ # path to migration scripts
5+ script_location = alembic
6+
7+ # template used to generate migration files
8+ # file_template = %%(rev)s_%%(slug)s
9+
10+ # sys.path path, will be prepended to sys.path if present.
11+ # defaults to the current working directory.
12+ prepend_sys_path = .
13+
14+ # timezone to use when rendering the date within the migration file
15+ # as well as the filename.
16+ # If specified, requires the python-dateutil library that can be
17+ # installed by adding `alembic[tz]` to the pip requirements
18+ # string value is passed to dateutil.tz.gettz()
19+ # leave blank for localtime
20+ # timezone =
21+
22+ # max length of characters to apply to the
23+ # "slug" field
24+ # truncate_slug_length = 40
25+
26+ # set to 'true' to run the environment during
27+ # the 'revision' command, regardless of autogenerate
28+ # revision_environment = false
29+
30+ # set to 'true' to allow .pyc and .pyo files without
31+ # a source .py file to be detected as revisions in the
32+ # versions/ directory
33+ # sourceless = false
34+
35+ # version location specification; This defaults
36+ # to alembic/versions. When using multiple version
37+ # directories, initial revisions must be specified with --version-path.
38+ # The path separator used here should be the separator specified by "version_path_separator" below.
39+ # version_locations = %(here)s/bar:%(here)s/bat:alembic/versions
40+
41+ # version path separator; As mentioned above, this is the character used to split
42+ # version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
43+ # If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas.
44+ # Valid values for version_path_separator are:
45+ #
46+ # version_path_separator = :
47+ # version_path_separator = ;
48+ # version_path_separator = space
49+
50+ # set to 'true' to search source directory for include files
51+ # that are relative to the alembic.ini file
52+ # source_include_current_dir = true
53+
54+ # version file pattern
55+ # version_file_pattern = %(rev)s_%%(slug)s
56+
57+ # Logging configuration
58+ [loggers]
59+ keys = root,sqlalchemy,alembic
60+
61+ [handlers]
62+ keys = console
63+
64+ [formatters]
65+ keys = generic
66+
67+ [logger_root]
68+ level = WARN
69+ handlers = console
70+ qualname =
71+
72+ [logger_sqlalchemy]
73+ level = WARN
74+ handlers =
75+ qualname = sqlalchemy.engine
76+
77+ [logger_alembic]
78+ level = INFO
79+ handlers =
80+ qualname = alembic
81+
82+ [handler_console]
83+ class = StreamHandler
84+ args = (sys.stderr,)
85+ level = NOTSET
86+ formatter = generic
87+
88+ [formatter_generic]
89+ format = %(levelname)-5.5s [%(name)s] %(message)s
90+ datefmt = %H:%M:%S
0 commit comments