Releases: jazzband/django-redshift-backend
5.0.0
What's Changed
Features:
- [#144] Add Python-3.13 support by @shimizukawa in #164
- [#141] Drop Django 3.2 and 4.0 by @shimizukawa in #161
- [#141] Remove the code that supports Django-4.0 or earlier. by @shimizukawa in #162
- [#142] Drop python 3.8, which will no longer be supported in 2024-10 by @shimizukawa in #163
Internals:
- using uv-0.5.x by @shimizukawa in #151
Full Changelog: 4.2.0...5.0.0
4.2.0
What's Changed
General:
- Add Django-5.0 support #143 by @shimizukawa in #145
- Add Django-5.1 support #152 by @shimizukawa in #153
Features:
- #149 Added a clear message on ImportError when the psycopg2 package cannot be found. by @shimizukawa in #159
Bug FIxes:
- fixes #12, #154 : disabling native json support by @shimizukawa in #155
- fix for #143 enabling backward migrations on dj50 by @shimizukawa in #156
Internals:
- use uv-0.3 by @shimizukawa in #148
Full Changelog: 4.1.1...4.2.0
4.1.1
What's Changed
- Fixed: broken django.db.backends.signals.connection_created signal by @shimizukawa in #147
Full Changelog: 4.1.0...4.1.1
4.1.0
4.0.0
What's Changed
Features:
- #116 Add Django-4.2 support.
Special thanks to Grzegorz Śliwiński, who made a significant contribution to the development of Django-4.1 support in PR #111. Using this as a springboard, we have now made it possible to support Django-4.2. - #83 Drop Django-2.2 support.
- #83 Drop Python-3.6 support.
- #127 Drop Python-3.7 support.
- #83 Drop Django-2.2 support.
- #134 Support adding COLUMN with UNIQUE; adding column without UNIQUE then add UNIQUE CONSTRAINT.
- #135 Support adding BinaryField.
- #132 Use 36 length for UUIDFields to support including hyphens. Thanks to kylie.
Bug Fixes:
- #134 inspectdb should suppress output 'id = AutoField(primary_key=True)'
- #134 fix for decreasing size of column with default by create-copy-drop-rename strategy.
- #118 fix constraint creation using the wrong table and column name. Thanks to BlueMagma.
Others
- add django-sql-explorer for examples by @shimizukawa in #99
- update readme links by @Arhell in #113
- update links by @Arhell in #115
- Modernize formatter: use ruff instead of flake8 by @shimizukawa in #120
- Modernize packaging: use pyproject.toml instead of setup.py/cfg by @shimizukawa in #121
- add devcontainer settings for dev env by @shimizukawa in #119
- Bump the all-github-actions group with 4 updates by @dependabot in #123
- Remove using setup.py by @shimizukawa in #124
- remove codecov by @shimizukawa in #125
- Drop python 3.7 by @shimizukawa in #127
- using uv by @shimizukawa in #126
- fix bugs for testing with Redshift (include a new feature; add columun with UNIQUE) by @shimizukawa in #134
- [#135] Support adding BinaryType FIeld by @shimizukawa in #136
- [#135] Support adding BinaryType Field by @shimizukawa in #137
- closes #116: Add support for Django 4.2 by @shimizukawa in #129
- [#132] use 36 length for UUIDFields to support including hyphens by @shimizukawa in #138
- [#118] Fix: fix constraint creation using the wrong table and column name by @shimizukawa in #139
Contributors
Full Changelog: 3.0.0...4.0.0
3.0.0
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 todjango_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 causeProgrammingError: cannot drop sortkey column "name"
exception. - #64: fix Django
auth
migration that causeNotSupportedError: column "content_type__app_label" specified as distkey/sortkey is not in the table "auth_permission"
exception.
2.1.0
2.0.1
2.0.0a1
General:
- #70,#71,#72 Moved CI to GitHub Actions: https://github.com/jazzband/django-redshift-backend/actions
Thkanks to Bruno Alla.
Features:
- Drop Python 2.7 and 3.5 support.
- Drop Django 1.11, 2.0 and 2.1 support.
- #68 Add Python 3.8 and 3.9 support.
- #68 Add Django 3.0 and 3.1 support.
Bug Fixes:
- #69 Let users choose between psycopg2 binary or source. Thkanks to Bruno Alla.
- #65,#66 Deprecation warning due to invalid escape sequences. Thanks to Karthikeyan Singaravelan.
Documentation:
- #67 Just a typo cleanup from refs.rst. Thanks to Kostja P.
2.0.0
General:
- #70,#71,#72 Moved CI to GitHub Actions: https://github.com/jazzband/django-redshift-backend/actions
Thkanks to Bruno Alla.
Features:
- Drop Python 2.7 and 3.5 support.
- Drop Django 1.11, 2.0 and 2.1 support.
- #68 Add Python 3.8 and 3.9 support.
- #68 Add Django 3.0 and 3.1 support.
Bug Fixes:
- #69 Let users choose between psycopg2 binary or source. Thkanks to Bruno Alla.
- #65,#66 Deprecation warning due to invalid escape sequences. Thanks to Karthikeyan Singaravelan.
Documentation:
- #67 Just a typo cleanup from refs.rst. Thanks to Kostja P.