Releases: 3YOURMIND/django-migration-linter
Releases · 3YOURMIND/django-migration-linter
2.4.0
- Add possibility to lint newly generated migrations through the
makemigrations
command.
You can activate it through the--lint
command option, or by default with theMIGRATION_LINTER_OVERRIDE_MAKEMIGRATIONS = True
Django settings.
2.3.0
- Handle making a column NOT NULL with a Django default value as backward incompatible.
This should have been the case from the beginning, but it was not.
When one uses thedjango-add-default-value
lib, the operation should still be compatible. - Improve behaviour of the
--include-migrations-from
option.
When the given filename is missplelled, fail instead of linting all migrations.
When the file is empty, lint no migrations instead of linting all migrations. - Update libraries used for testing (
tox
,flake8
, etc.)
2.2.2
- Don't pin dependencies but only define minimal versions
2.2.1
Fixed bug:
- Correctly detect
apps.get_models
when on multiple lines in data migration
2.2.0
- Make summary output more friendly (Thanks to @vald-phoenix)
- Add forgotten documentation about
IgnoreMigration
- Don't pin the
appdirs
strictly to 1.4.3, but allow higher versions
2.1.0
- Detect in data migrations if models are imported the correct way or not
2.0.0
- Add linting on data migrations that will raise warnings
- Add
--quiet warning
option to suppress warning messages - Add
--warnings-as-errors
option to handle warnings as errors
1.5.0
- Rework documentation. Make
README
smaller and clearer. Move detailed documentation todocs/
folder. - Add Django 3.0 to test matrix.
1.4.1
Update testing dependencies (mysqlclient
, Django 2.2 and black
)
1.4.0
- Add
--include-migrations-from
option to only consider migrations specified in a given file. No matter if the migrations are selected from a git commit or not, we only select the ones in the given file. - Add
--quiet {ok,ignore,error}
option to remove different or multiple types of messages from being printed to stdout. - Make detection of problematic table and column a bit more resilient for UX.
- Add Python 3.8 to test matrix and update test dependencies.
Fixed bugs:
- Handle adding many to many fields correctly.