Skip to content

Releases: 3YOURMIND/django-migration-linter

2.4.0

03 Jul 17:16
Compare
Choose a tag to compare
  • Add possibility to lint newly generated migrations through the makemigrations command.
    You can activate it through the --lint command option, or by default with the MIGRATION_LINTER_OVERRIDE_MAKEMIGRATIONS = True Django settings.

2.3.0

20 Jun 16:09
Compare
Choose a tag to compare
  • 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 the django-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

26 May 16:13
Compare
Choose a tag to compare
  • Don't pin dependencies but only define minimal versions

2.2.1

18 May 14:00
Compare
Choose a tag to compare

Fixed bug:

  • Correctly detect apps.get_models when on multiple lines in data migration

2.2.0

11 May 16:06
Compare
Choose a tag to compare
  • 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

08 Feb 21:39
Compare
Choose a tag to compare
  • Detect in data migrations if models are imported the correct way or not

2.0.0

07 Feb 22:30
Compare
Choose a tag to compare
  • 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

26 Jan 10:57
Compare
Choose a tag to compare
  • Rework documentation. Make README smaller and clearer. Move detailed documentation to docs/ folder.
  • Add Django 3.0 to test matrix.

1.4.1

09 Jan 19:49
Compare
Choose a tag to compare

Update testing dependencies (mysqlclient, Django 2.2 and black)

1.4.0

09 Jan 19:48
Compare
Choose a tag to compare
  • 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.