alembic.ini
| 1 | # Alembic configuration for Muse |
| 2 | |
| 3 | [alembic] |
| 4 | # Path to migration scripts |
| 5 | script_location = alembic |
| 6 | |
| 7 | # Template used to generate migration files |
| 8 | file_template = %%(year)d%%(month).2d%%(day).2d_%%(hour).2d%%(minute).2d_%%(rev)s_%%(slug)s |
| 9 | |
| 10 | # Timezone for timestamps |
| 11 | timezone = UTC |
| 12 | |
| 13 | # Truncate slug length |
| 14 | truncate_slug_length = 40 |
| 15 | |
| 16 | # Output encoding |
| 17 | output_encoding = utf-8 |
| 18 | |
| 19 | # Database URL is set in env.py from the app config. Not in this file for security. |
| 20 | |
| 21 | [post_write_hooks] |
| 22 | |
| 23 | |
| 24 | [loggers] |
| 25 | keys = root,sqlalchemy,alembic |
| 26 | |
| 27 | [handlers] |
| 28 | keys = console |
| 29 | |
| 30 | [formatters] |
| 31 | keys = generic |
| 32 | |
| 33 | [logger_root] |
| 34 | level = WARN |
| 35 | handlers = console |
| 36 | qualname = |
| 37 | |
| 38 | [logger_sqlalchemy] |
| 39 | level = WARN |
| 40 | handlers = |
| 41 | qualname = sqlalchemy.engine |
| 42 | |
| 43 | [logger_alembic] |
| 44 | level = INFO |
| 45 | handlers = |
| 46 | qualname = alembic |
| 47 | |
| 48 | [handler_console] |
| 49 | class = StreamHandler |
| 50 | args = (sys.stderr,) |
| 51 | level = NOTSET |
| 52 | formatter = generic |
| 53 | |
| 54 | [formatter_generic] |
| 55 | format = %(levelname)-5.5s [%(name)s] %(message)s |
| 56 | datefmt = %H:%M:%S |