|
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 |
| -# see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file |
11 |
| -# for all available tokens |
12 |
| -# file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s |
13 |
| - |
14 |
| -# sys.path path, will be prepended to sys.path if present. |
15 |
| -# defaults to the current working directory. |
16 | 3 | prepend_sys_path = .
|
17 |
| - |
18 |
| -# timezone to use when rendering the date within the migration file |
19 |
| -# as well as the filename. |
20 |
| -# If specified, requires the python>=3.9 or backports.zoneinfo library. |
21 |
| -# Any required deps can installed by adding `alembic[tz]` to the pip requirements |
22 |
| -# string value is passed to ZoneInfo() |
23 |
| -# leave blank for localtime |
24 |
| -# timezone = |
25 |
| - |
26 |
| -# max length of characters to apply to the "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 alembic/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:alembic/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 |
52 |
| -version_path_separator = os # Use os.pathsep. Default configuration used for new projects. |
53 |
| - |
54 |
| -# set to 'true' to search source files recursively |
55 |
| -# in each "version_locations" directory |
56 |
| -# new in Alembic version 1.10 |
57 |
| -# recursive_version_locations = false |
58 |
| - |
59 |
| -# the output encoding used when revision files |
60 |
| -# are written from script.py.mako |
61 |
| -# output_encoding = utf-8 |
62 |
| - |
| 4 | +version_path_separator = os |
63 | 5 | sqlalchemy.url = postgresql://postgres:1234@notesdb/postgres
|
64 | 6 |
|
65 |
| - |
66 | 7 | [post_write_hooks]
|
67 |
| -# post_write_hooks defines scripts or Python functions that are run |
68 |
| -# on newly generated revision scripts. See the documentation for further |
69 |
| -# detail and examples |
70 |
| - |
71 |
| -# format using "black" - use the console_scripts runner, against the "black" entrypoint |
72 |
| -# hooks = black |
73 |
| -# black.type = console_scripts |
74 |
| -# black.entrypoint = black |
75 |
| -# black.options = -l 79 REVISION_SCRIPT_FILENAME |
76 |
| - |
77 |
| -# lint with attempts to fix using "ruff" - use the exec runner, execute a binary |
78 |
| -# hooks = ruff |
79 |
| -# ruff.type = exec |
80 |
| -# ruff.executable = %(here)s/.venv/bin/ruff |
81 |
| -# ruff.options = --fix REVISION_SCRIPT_FILENAME |
82 | 8 |
|
83 |
| -# Logging configuration |
84 | 9 | [loggers]
|
85 | 10 | keys = root,sqlalchemy,alembic
|
86 | 11 |
|
|
0 commit comments