-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalembic.ini
More file actions
54 lines (43 loc) · 1.37 KB
/
Copy pathalembic.ini
File metadata and controls
54 lines (43 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
# Alembic configuration for cat-watcher.
#
# The runtime DB URL is resolved by ``migrations/env.py`` with this precedence:
# 1. ``CAT_WATCHER_DB_URL`` env var (test-only override).
# 2. ``<internal_root>/cat_watcher.sqlite`` from the loaded application config.
#
# If neither is available, env.py raises ``ValueError`` rather than silently creating a stub
# database at some default path. Do NOT add a ``sqlalchemy.url`` here — a typo'd config should fail
# loudly, not spawn an empty DB file.
[alembic]
# Path to migration scripts (POSIX style, relative to %(here)s — this ini file's directory).
script_location = %(here)s/migrations
# Prepend the project root to sys.path so ``cat_watcher`` is importable from env.py.
prepend_sys_path = .
# Use os.pathsep for parsing list-style options (the modern default).
path_separator = os
# Logging configuration consumed by env.py via ``logging.config.fileConfig``.
[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