|
1 | | -# A generic, single database configuration. |
2 | | - |
3 | 1 | [alembic] |
4 | | -# path to migration scripts. |
5 | | -# Use forward slashes (/) also on windows to provide an os agnostic path |
6 | 2 | script_location = migrations |
7 | | - |
8 | | -# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s |
9 | | -# Uncomment the line below if you want the files to be prepended with date and time |
10 | 3 | file_template = %%(year)d%%(month).2d%%(day).2d%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s |
11 | | - |
12 | | -# sys.path path, will be prepended to sys.path if present. |
13 | | -# defaults to the current working directory. |
14 | 4 | prepend_sys_path = . |
15 | | - |
16 | | -# timezone to use when rendering the date within the migration file |
17 | | -# as well as the filename. |
18 | | -# If specified, requires the python>=3.9 or backports.zoneinfo library. |
19 | | -# Any required deps can installed by adding `alembic[tz]` to the pip requirements |
20 | | -# string value is passed to ZoneInfo() |
21 | | -# leave blank for localtime |
22 | 5 | timezone = America/Sao_Paulo |
| 6 | +version_path_separator = os |
23 | 7 |
|
24 | | -# max length of characters to apply to the "slug" field |
25 | | -# truncate_slug_length = 40 |
26 | | - |
27 | | -# set to 'true' to run the environment during |
28 | | -# the 'revision' command, regardless of autogenerate |
29 | | -# revision_environment = false |
30 | | - |
31 | | -# set to 'true' to allow .pyc and .pyo files without |
32 | | -# a source .py file to be detected as revisions in the |
33 | | -# versions/ directory |
34 | | -# sourceless = false |
35 | | - |
36 | | -# version location specification; This defaults |
37 | | -# to alembic/versions. When using multiple version |
38 | | -# directories, initial revisions must be specified with --version-path. |
39 | | -# The path separator used here should be the separator specified by "version_path_separator" below. |
40 | | -# version_locations = %(here)s/bar:%(here)s/bat:alembic/versions |
41 | | - |
42 | | -# version path separator; As mentioned above, this is the character used to split |
43 | | -# version_locations. The default within new alembic.ini files is "os", which uses os.pathsep. |
44 | | -# If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas. |
45 | | -# Valid values for version_path_separator are: |
46 | | -# |
47 | | -# version_path_separator = : |
48 | | -# version_path_separator = ; |
49 | | -# version_path_separator = space |
50 | | -version_path_separator = os # Use os.pathsep. Default configuration used for new projects. |
51 | | - |
52 | | -# set to 'true' to search source files recursively |
53 | | -# in each "version_locations" directory |
54 | | -# new in Alembic version 1.10 |
55 | | -# recursive_version_locations = false |
56 | | - |
57 | | -# the output encoding used when revision files |
58 | | -# are written from script.py.mako |
59 | | -# output_encoding = utf-8 |
60 | | - |
61 | | -sqlalchemy.url = driver://user:pass@localhost/dbname |
62 | | - |
63 | | - |
64 | | -[post_write_hooks] |
65 | | -# post_write_hooks defines scripts or Python functions that are run |
66 | | -# on newly generated revision scripts. See the documentation for further |
67 | | -# detail and examples |
68 | | - |
69 | | -# format using "black" - use the console_scripts runner, against the "black" entrypoint |
70 | | -# hooks = black |
71 | | -# black.type = console_scripts |
72 | | -# black.entrypoint = black |
73 | | -# black.options = -l 79 REVISION_SCRIPT_FILENAME |
74 | | - |
75 | | -# lint with attempts to fix using "ruff" - use the exec runner, execute a binary |
76 | | -# hooks = ruff |
77 | | -# ruff.type = exec |
78 | | -# ruff.executable = %(here)s/.venv/bin/ruff |
79 | | -# ruff.options = --fix REVISION_SCRIPT_FILENAME |
| 8 | +sqlalchemy.url = |
80 | 9 |
|
81 | 10 | # Logging configuration |
82 | 11 | [loggers] |
|
0 commit comments