/ alembic.ini
alembic.ini
1 # A generic, single database configuration. 2 3 [alembic] 4 # path to migration scripts 5 script_location = migrations 6 7 # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s 8 # Uncomment the line below if you want the files to be prepended with date and time 9 file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s 10 11 # sys.path path, will be prepended to sys.path if present. 12 # defaults to the current working directory. 13 prepend_sys_path = . 14 15 # timezone to use when rendering the date within the migration file 16 # as well as the filename. 17 # If specified, requires the python-dateutil library that can be 18 # installed by adding `alembic[tz]` to the pip requirements 19 # string value is passed to dateutil.tz.gettz() 20 # leave blank for localtime 21 # timezone = 22 23 # max length of characters to apply to the 24 # "slug" field 25 # truncate_slug_length = 40 26 27 # set to 'true' to run the environment during 28 # the 'revision' command, regardless of autogenerate 29 # revision_environment = false 30 31 # set to 'true' to allow .pyc and .pyo files without 32 # a source .py file to be detected as revisions in the 33 # versions/ directory 34 # sourceless = false 35 36 # version location specification; This defaults 37 # to migrations/versions. When using multiple version 38 # directories, initial revisions must be specified with --version-path. 39 # The path separator used here should be the separator specified by "version_path_separator" below. 40 # version_locations = %(here)s/bar:%(here)s/bat:migrations/versions 41 42 # version path separator; As mentioned above, this is the character used to split 43 # version_locations. The default within new alembic.ini files is "os", which uses os.pathsep. 44 # If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas. 45 # Valid values for version_path_separator are: 46 # 47 # version_path_separator = : 48 # version_path_separator = ; 49 # version_path_separator = space 50 version_path_separator = os # Use os.pathsep. Default configuration used for new projects. 51 52 # set to 'true' to search source files recursively 53 # in each "version_locations" directory 54 # new in Alembic version 1.10 55 # recursive_version_locations = false 56 57 # the output encoding used when revision files 58 # are written from script.py.mako 59 # output_encoding = utf-8 60 61 # sqlalchemy.url = driver://user:pass@localhost/dbname 62 63 64 [post_write_hooks] 65 # post_write_hooks defines scripts or Python functions that are run 66 # on newly generated revision scripts. See the documentation for further 67 # detail and examples 68 69 # format using "black" - use the console_scripts runner, against the "black" entrypoint 70 # hooks = black 71 # black.type = console_scripts 72 # black.entrypoint = black 73 # black.options = -l 79 REVISION_SCRIPT_FILENAME 74 75 # Logging configuration 76 [loggers] 77 keys = root,sqlalchemy,alembic 78 79 [handlers] 80 keys = console 81 82 [formatters] 83 keys = generic 84 85 [logger_root] 86 level = WARN 87 handlers = console 88 qualname = 89 90 [logger_sqlalchemy] 91 level = WARN 92 handlers = 93 qualname = sqlalchemy.engine 94 95 [logger_alembic] 96 level = INFO 97 handlers = 98 qualname = alembic 99 100 [handler_console] 101 class = StreamHandler 102 args = (sys.stderr,) 103 level = NOTSET 104 formatter = generic 105 106 [formatter_generic] 107 format = %(name)-26s %(levelname)-8s %(message)s 108 datefmt = %H:%M:%S