# Alembic Configuration # Database migrations for Transporter Management Backend [alembic] # Path to migration scripts script_location = alembic # Template used to generate migration files file_template = %%(year)d%%(month).2d%%(day).2d_%%(hour).2d%%(minute).2d_%%(rev)s_%%(slug)s # Prepend sys.path to the current project prepend_sys_path = . # Timezone to use for revision IDs (default: system timezone) # timezone = # Max length of characters to apply to the "slug" field truncate_slug_length = 40 # Set to 'true' to run migrations in "offline" mode # This generates SQL statements without connecting to the database revision_environment = false # Path to version locations # version_locations = %(here)s/bar:%(here)s/bat:alembic/versions # Version path separator # version_path_separator = : # The output encoding used when revision files are written output_encoding = utf-8 # SQLAlchemy database URL will be loaded from environment sqlalchemy.url = driver://user:pass@localhost/dbname [post_write_hooks] # Hooks to run after generating new revisions # Format using "black ." as specified # hooks = black # black.type = console_scripts # black.entrypoint = black # black.options = -q # Logging configuration [loggers] keys = root,sqlalchemy,alembic [handlers] keys = console [formatters] keys = generic [logger_root] level = WARN handlers = console qualname = [logger_sqlalchemy] level = WARN handlers = qualname = sqlalchemy.engine [logger_alembic] level = INFO handlers = qualname = alembic [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic [formatter_generic] format = %(levelname)-5.5s [%(name)s] %(message)s datefmt = %H:%M:%S