Fix #5398 and #5395 - Fix tests failing due to problem creating connection for alembic
[larjonas-mediagoblin.git] / alembic.ini
blob7ae94f9fd01e999b01f2c6571cd68f7d6da3f385
1 # A generic, single database configuration.
3 [alembic]
4 # path to migration scripts
5 script_location = %(here)s/mediagoblin/db/migrations
7 # template used to generate migration files
8 # file_template = %%(rev)s_%%(slug)s
10 # max length of characters to apply to the
11 # "slug" field
12 #truncate_slug_length = 40
14 # set to 'true' to run the environment during
15 # the 'revision' command, regardless of autogenerate
16 # revision_environment = false
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
23 # Logging configuration
24 [loggers]
25 keys = root,sqlalchemy,alembic
27 [handlers]
28 keys = console
30 [formatters]
31 keys = generic
33 [logger_root]
34 level = WARN
35 handlers = console
36 qualname =
38 [logger_sqlalchemy]
39 level = WARN
40 handlers =
41 qualname = sqlalchemy.engine
43 [logger_alembic]
44 level = INFO
45 handlers =
46 qualname = alembic
48 [handler_console]
49 class = StreamHandler
50 args = (sys.stderr,)
51 level = NOTSET
52 formatter = generic
54 [formatter_generic]
55 format = %(levelname)-5.5s [%(name)s] %(message)s
56 datefmt = %H:%M:%S