-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalembic.ini
More file actions
77 lines (56 loc) · 1.94 KB
/
alembic.ini
File metadata and controls
77 lines (56 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Alembic configuration for managing database migrations.
[alembic]
# Path to migration scripts (use forward slashes for cross-platform compatibility)
script_location = migrations
# Customize the naming convention for migration files
# Uncomment to prepend filenames with date and time
# file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
# Specify a directory to prepend to sys.path (default: current directory)
prepend_sys_path = .
# Timezone for rendering timestamps in migration files (Python 3.9+)
# timezone =
# Max length for the "slug" field in file names (default: 40 characters)
# truncate_slug_length = 40
# Automatically run environment during 'revision' command if set to true
# revision_environment = false
# Allow detection of .pyc/.pyo files as revisions if no .py exists
# sourceless = false
# Specify location(s) for version files (default: migrations/versions)
# version_locations = %(here)s/foo:%(here)s/bar:migrations/versions
# Use OS-specific path separator for version_locations (default: os.pathsep)
version_path_separator = os
# Search for source files recursively in version locations (Alembic 1.10+)
# recursive_version_locations = false
# Encoding for output files (default: utf-8)
# output_encoding = utf-8
# Database connection string
sqlalchemy.url = postgresql+asyncpg://%(POSTGRES_USER)s:%(POSTGRES_PASSWORD)s@%(POSTGRES_HOST)s/%(POSTGRES_DB)s
[post_write_hooks]
# Post-write hooks configuration...
# Logging configuration
[loggers]
keys = root,sqlalchemy,alembic
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
qualname =
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
[logger_alembic]
level = INFO
handlers =
qualname = alembic
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S