-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalembic.ini
More file actions
48 lines (39 loc) · 1.1 KB
/
Copy pathalembic.ini
File metadata and controls
48 lines (39 loc) · 1.1 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
# BUG-032: Alembic config. The database URL is set at runtime by alembic/env.py
# from api.config.settings — this file's sqlalchemy.url is a placeholder that
# never gets read for the online migration path (see env.py override).
#
# Manual invocation (rare — API auto-runs on startup):
# python -m alembic upgrade head # apply all pending
# python -m alembic downgrade -1 # revert one
# python -m alembic revision -m "add foo" # scaffold a new migration file
[alembic]
script_location = alembic
prepend_sys_path = .
version_path_separator = os
sqlalchemy.url = postgresql+psycopg2://placeholder@localhost/placeholder
[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