-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalembic.ini
60 lines (46 loc) · 1.58 KB
/
alembic.ini
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
55
56
57
58
59
60
[alembic]
# path to migration scripts
script_location = %(here)s/migrations
# template used to generate migration files
file_template = %%(year).4d%%(month).2d%%(day).2d%%(hour).2d%%(minute).2d%%(second).2d_%%(slug)s
# max length of characters to apply to the "slug" field
truncate_slug_length = 40
# this is a flag which when set to the value ‘true’, will indicate that the migration
# environment script env.py should be run unconditionally when generating new
# revision files, as well as when running the alembic history command.
revision_environment = true
# when set to ‘true’, revision files that only exist as .pyc or .pyo files in the versions
# directory will be used as versions, allowing “sourceless” version folders. When left
# at the default of ‘false’, only .py files are consumed as version files.
sourceless = false
# an optional list of revision file locations, to allow revisions to exist
# in multiple directories simultaneously
version_locations = %(here)s/migrations/versions
# the output encoding used when revision files are written from script.py.mako
output_encoding = utf-8
[loggers]
keys = root,sqlalchemy,alembic
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARNING
handlers =
qualname = root
[logger_sqlalchemy]
level = WARNING
handlers = console
qualname = sqlalchemy.engine
[logger_alembic]
level = INFO
handlers = console
qualname = alembic
[handler_console]
class = StreamHandler
args = (sys.stdout, )
level = INFO
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S