Skip to content

3.0.0

Latest
Compare
Choose a tag to compare
@shimizukawa shimizukawa released this 27 Feb 00:01
· 11 commits to master since this release

General:

  • #87 Drop py2 wheel tag from release package file.
  • Add CODE_OF_CONDUCT.rst The linked text which has been referred to from CONTRIBUTING.rst is now included.

Incompatible Changes:

  • #97 To specify SORTKEY for Redshift, you must use django_redshift_backend.SortKey for
    Model.Meta.ordering instead of bearer string.

    IMPORTANT:
    With this change, existing migration files that specify ordering are not affected.
    If you want to apply SortKey to your migration files, please comment out the ordering option once and run
    makemigrations, then comment in the ordering option and run makemigrations again.

  • #97 django_redshift_backend.distkey.DistKey is moved to django_redshift_backend.DistKey.
    However old name is still supported for a compatibility.

  • #97 Now django-redshift-backend doesn't support can_rollback_ddl.
    Originally, Redshift did not support column name/type(size) changes within a transaction.
    Please refer #96

  • #97 changed the behavior of implicit not null column addition.
    previously, adding a not null column was implicitly changed to allow null.
    now adding not null without default raises a programmingerror exception.

Features:

  • #82 Add Python-3.10 support.
  • #98 Add Django-4.0 support.
  • #82 Drop Django-3.0 support.
  • #98 Drop Django-3.1 support.
  • #90,#13,#8: Support manage.py inspectdb, also support working with the django-sql-explorer package.
    Thanks to Matt Fisher.
  • #63 Support changing a field from NOT NULL to NULL on migrate / sqlmigrate.
  • #97 Support VARCHAR size changing for UNIQUE, PRIMARY KEY, FOREIGN KEY.
  • #97 Support backward migration for DROP NOT NULL column wituout DEFAULT.
    One limitation is that the DEFAULT value is set to match the type. This is because the only way for
    Redshift to add NOT NULL without default is to recreate the table.

Bug Fixes:

  • #92,#93: since django-3.0 sqlmigrate (and migrate) does not work.
  • #37: fix Django contenttype migration that cause ProgrammingError: cannot drop sortkey column "name" exception.
  • #64: fix Django auth migration that cause NotSupportedError: column "content_type__app_label" specified as distkey/sortkey is not in the table "auth_permission" exception.