# A generic, single database configuration for Alembic [alembic] # path to migration scripts script_location = alembic # template used to generate migration file names; The default combo is a # reasonable choice. # file_template = %%(rev)s_%%(slug)s # timezone to use when rendering the date within the migration file # timezone = # max length of characters to clone to project slug # truncate_slug_length = 40 # set to 'true' to run the environment during the # 'revision' command, regardless of autogenerate # revision_environment = false # set to 'true' to allow modules to be imported from current directory prepend_sys_path = . # version path separator; defaults to os.pathsep. # Use a space to allow multi-line values. # version_path_separator = : # set to 'true' to search for schemas in the metadata # search_schemas = false # database url sqlalchemy.url = mysql+pymysql://root:password@127.0.0.1:3306/lms_db [post_write_hooks] # post_write_hooks defines scripts or methods that are run after a script is written [loggers] keys = root,sqlalchemy,alembic [handlers] keys = console [formatters] keys = generic [logger_root] level = WARNING handlers = console qualname = [logger_sqlalchemy] level = WARNING handlers = qualname = sqlalchemy.engine [logger_alembic] level = INFO handlers = qualname = alembic [handler_console] class = StreamHandler args = (sys.stdout,) level = NOTSET formatter = generic [formatter_generic] format = %(levelname)-5.5s [%(name)s] %(message)s datefmt = %H:%M:%S