-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalembic.ini
More file actions
42 lines (34 loc) · 949 Bytes
/
Copy pathalembic.ini
File metadata and controls
42 lines (34 loc) · 949 Bytes
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
# Alembic 설정 — 파이프라인이 공유 DB(PostgreSQL) 스키마/마이그레이션을 소유한다.
# DB URL 은 보안상 여기 적지 않고 환경변수 IPE_DB_URL 로 주입한다 (env.py 가 읽음).
# 예: export IPE_DB_URL="postgresql+psycopg://user:pw@host:5432/bank"
# 적용: alembic upgrade head / 생성: alembic revision --autogenerate -m "msg"
[alembic]
script_location = ipe/v2/db/migrations
prepend_sys_path = .
path_separator = os
[loggers]
keys = root,sqlalchemy,alembic
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARNING
handlers = console
qualname =
[logger_sqlalchemy]
level = WARNING
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