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