-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalembic.ini
More file actions
67 lines (51 loc) · 1.37 KB
/
Copy pathalembic.ini
File metadata and controls
67 lines (51 loc) · 1.37 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
# Alembic Configuration for Athena - Strategic Knowledge Copilot
#
# This file is used by Alembic for database migrations.
[alembic]
# Path to migration scripts
script_location = alembic
# Template for migration file names
file_template = %%(year)d%%(month).2d%%(day).2d_%%(hour).2d%%(minute).2d%%(second).2d_%%(slug)s
# This is prepended to sys.path. Required for module imports.
prepend_sys_path = .
# Timezone for revision IDs (set to UTC for consistency)
timezone = UTC
# Truncate long migration messages in console
truncate_slug_length = 40
# Set to true for testing to use "offline" mode
# (generate SQL without connecting to database)
revision_environment = false
# SQL output file for offline mode
# sqlalchemy.url is set in env.py from settings
[post_write_hooks]
# Format migrations with ruff after generation
hooks = ruff
ruff.type = exec
ruff.executable = ruff
ruff.options = format REVISION_SCRIPT_FILENAME
[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