gitscope
← marzneshin / v0.3.0-alpha7 / alembic.ini
https://dev.kronoz.win/r/marzneshin.git
alembic.ini · INI
Blame Raw
 1# A generic, single database configuration.
 2
 3[alembic]
 4# path to migration scripts
 5script_location = app/db/migrations
 6
 7# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
 8# Uncomment the line below if you want the files to be prepended with date and time
 9# see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file
10# for all available tokens
11# file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
12
13# sys.path path, will be prepended to sys.path if present.
14# defaults to the current working directory.
15prepend_sys_path = .
16
17# timezone to use when rendering the date within the migration file
18# as well as the filename.
19# If specified, requires the python-dateutil library that can be
20# installed by adding `alembic[tz]` to the pip requirements
21# string value is passed to dateutil.tz.gettz()
22# leave blank for localtime
23# timezone =
24
25# max length of characters to apply to the
26# "slug" field
27# truncate_slug_length = 40
28
29# set to 'true' to run the environment during
30# the 'revision' command, regardless of autogenerate
31# revision_environment = false
32
33# set to 'true' to allow .pyc and .pyo files without
34# a source .py file to be detected as revisions in the
35# versions/ directory
36# sourceless = false
37
38# version location specification; This defaults
39# to app/db/migrations/versions.  When using multiple version
40# directories, initial revisions must be specified with --version-path.
41# The path separator used here should be the separator specified by "version_path_separator" below.
42# version_locations = %(here)s/bar:%(here)s/bat:app/db/migrations/versions
43
44# version path separator; As mentioned above, this is the character used to split
45# version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
46# If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas.
47# Valid values for version_path_separator are:
48#
49# version_path_separator = :
50# version_path_separator = ;
51# version_path_separator = space
52version_path_separator = os  # Use os.pathsep. Default configuration used for new projects.
53
54
55[post_write_hooks]
56# post_write_hooks defines scripts or Python functions that are run
57# on newly generated revision scripts.  See the documentation for further
58# detail and examples
59
60# format using "black" - use the console_scripts runner, against the "black" entrypoint
61# hooks = black
62# black.type = console_scripts
63# black.entrypoint = black
64# black.options = -l 79 REVISION_SCRIPT_FILENAME
65
66# Logging configuration
67[loggers]
68keys = root,sqlalchemy,alembic
69
70[handlers]
71keys = console
72
73[formatters]
74keys = generic
75
76[logger_root]
77level = WARN
78handlers = console
79qualname =
80
81[logger_sqlalchemy]
82level = WARN
83handlers =
84qualname = sqlalchemy.engine
85
86[logger_alembic]
87level = INFO
88handlers =
89qualname = alembic
90
91[handler_console]
92class = StreamHandler
93args = (sys.stderr,)
94level = NOTSET
95formatter = generic
96
97[formatter_generic]
98format = %(levelname)-5.5s [%(name)s] %(message)s
99datefmt = %H:%M:%S