File tree Expand file tree Collapse file tree 2 files changed +1
-42
lines changed Expand file tree Collapse file tree 2 files changed +1
-42
lines changed Original file line number Diff line number Diff line change @@ -35,39 +35,4 @@ script_location = %(here)s/migrations
35
35
# are written from script.py.mako
36
36
# output_encoding = utf-8
37
37
38
- sqlalchemy.url = " "
39
-
40
- # Logging configuration
41
- [loggers]
42
- keys = root,sqlalchemy,alembic
43
-
44
- [handlers]
45
- keys = console
46
-
47
- [formatters]
48
- keys = generic
49
-
50
- [logger_root]
51
- level = WARN
52
- handlers = console
53
- qualname =
54
-
55
- [logger_sqlalchemy]
56
- level = WARN
57
- handlers =
58
- qualname = sqlalchemy.engine
59
-
60
- [logger_alembic]
61
- level = INFO
62
- handlers =
63
- qualname = alembic
64
-
65
- [handler_console]
66
- class = StreamHandler
67
- args = (sys.stderr,)
68
- level = WARN
69
- formatter = generic
70
-
71
- [formatter_generic]
72
- format = %(levelname)-5.5s [%(name)s] %(message)s
73
- datefmt = %H:%M:%S
38
+ sqlalchemy.url = " "
Original file line number Diff line number Diff line change 1
- from logging .config import fileConfig
2
-
3
1
from sqlalchemy import engine_from_config
4
2
from sqlalchemy import pool
5
3
9
7
# access to the values within the .ini file in use.
10
8
config = context .config
11
9
12
- # Interpret the config file for Python logging.
13
- # This line sets up loggers basically.
14
- fileConfig (config .config_file_name )
15
-
16
10
# add your model's MetaData object here
17
11
# for 'autogenerate' support
18
12
# from myapp import mymodel
You can’t perform that action at this time.
0 commit comments