Skip to content

PandaDoc/migration-lint

Repository files navigation

Migration Lint

ci status Coverage Py Version

migration-lint is the modular linter tool designed to perform checks on database schema migrations and prevent unsafe operations.

Features:

  • Works with Django migrations, Alembic and raw sql files.
  • Easily extensible for other frameworks.
  • Can identify Backward Incompatible operations and check if they are allowed in the current context.
  • Can identify "unsafe" operations, e.g. operations that acquire locks that can be dangerous for production database.

Installation

poetry add "migration-lint"
pip install "migration-lint"

Documentation

Read the docs on GitHub Pages

About

Modular tool for linting database migrations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages