Commit | Line | Data |
---|---|---|
65f20ca4 BP |
1 | # A generic, single database configuration. |
2 | ||
3 | [alembic] | |
4 | # path to migration scripts | |
5 | script_location = %(here)s/mediagoblin/db/migrations | |
6 | ||
7 | # template used to generate migration files | |
8 | # file_template = %%(rev)s_%%(slug)s | |
9 | ||
10 | # max length of characters to apply to the | |
11 | # "slug" field | |
12 | #truncate_slug_length = 40 | |
13 | ||
14 | # set to 'true' to run the environment during | |
15 | # the 'revision' command, regardless of autogenerate | |
16 | # revision_environment = false | |
17 | ||
18 | # set to 'true' to allow .pyc and .pyo files without | |
19 | # a source .py file to be detected as revisions in the | |
20 | # versions/ directory | |
21 | # sourceless = false | |
22 | ||
23 | sqlalchemy.url = sqlite:///mediagoblin.db | |
24 | ||
25 | ||
26 | # Logging configuration | |
27 | [loggers] | |
28 | keys = root,sqlalchemy,alembic | |
29 | ||
30 | [handlers] | |
31 | keys = console | |
32 | ||
33 | [formatters] | |
34 | keys = generic | |
35 | ||
36 | [logger_root] | |
37 | level = WARN | |
38 | handlers = console | |
39 | qualname = | |
40 | ||
41 | [logger_sqlalchemy] | |
42 | level = WARN | |
43 | handlers = | |
44 | qualname = sqlalchemy.engine | |
45 | ||
46 | [logger_alembic] | |
47 | level = INFO | |
48 | handlers = | |
49 | qualname = alembic | |
50 | ||
51 | [handler_console] | |
52 | class = StreamHandler | |
53 | args = (sys.stderr,) | |
54 | level = NOTSET | |
55 | formatter = generic | |
56 | ||
57 | [formatter_generic] | |
58 | format = %(levelname)-5.5s [%(name)s] %(message)s | |
59 | datefmt = %H:%M:%S |