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