{"repo":"3YOURMIND/django-migration-linter","free":true,"listed":false,"github":"https://github.com/3YOURMIND/django-migration-linter","clone":"git clone https://github.com/3YOURMIND/django-migration-linter.git","description":":rocket: Detect backward incompatible migrations for your django project","language":"Python","stars":615,"topics":["django","python","linter","database","mysql","postgresql","migrations"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Django migration linter Detect backward incompatible migrations for your Django project. It will save you time by making sure migrations will not break with a older codebase. Quick installation And add the migration linter to your INSTALLED APPS : Optionally, add a configuration: For details about configuration options, checkout Usage. Usage example The linter analysed all migrations from the Django project. It found 3 migrations that are doing backward incompatible operations and 1 that is explicitly ignored. The list of incompatibilities that the linter analyses can be found at docs/incompatibilities.md. More advanced usages of the linter and options can be found at docs/usage.md. Integration One can either integrate the linter in the CI using its lintmigrations command, or detect incompatibilities during generation of migrations with The linter found that the newly created migration is not backward compatible and deleted the file after confirmation. This behaviour can be the default of the makemigrations command through the MIGRATION LINTER OVERRIDE MAKEMIGRATIONS Django setting. Find out more about the makemigrations command at docs/makemigrations.md. More information Please find more documentation in the docs/ folder. Some implementation details can be found in the ./docs/internals/ folder. Blog post Keeping Django database migrations backward compatible Django and its default values They talk about the linter Django News wemake-django-template Testing Django migrations ","default_branch":null,"files":null,"tree":[],"storefront":"/r/3YOURMIND","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/3YOURMIND/django-migration-linter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}