-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport fixes from django-mssql-backend #9
Conversation
This was previously accepted to the original repository in ESSolutions/django-mssql-backend#86. Backwards compatibility for Django < 3.1 is maintained by not directly trying to load the supports_deferrable_unique_constraints via dot notation, but rather by getattr with a default.
CREATE INDEX in SQL Server only supports AND conditions (not OR) as part of its WHERE syntax. This change handles that situation by raising an error from the schema editor class. This change adds unit tests to confirm this happens against a SQL Server database. Previously opened at ESSolutions/django-mssql-backend#97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution, this will help the user experience.
Thanks @absci - much appreciated. Would it be possible to create a new PyPI release? Thank you! |
No problem, we don't really have a schedule for the next release yet, but it should be soon. |
It's generally safe to install from source, I don't have updates for the schedule yet. |
hi @absci I am trying to deploy with Django 3.2 and am having this same issue. Seeing if you might have an update on when Pypi will be updated. |
Hi @mbehn , Pypi will be updated June 30, 2021 with version 1.0rc1. The GA release is scheduled to be released on Pypi on July 29, 2021. Cheers |
This PR features several PRs previously made on https://github.com/ESSolutions/django-mssql-backend:
host_is_server
: Fix host_is_server URL and expand docs in README ESSolutions/django-mssql-backend#92 (merged)deferrable
kwarg: Accept deferrable kwarg for schema editor SQL ESSolutions/django-mssql-backend#86 (merged)and fixes
manage.py
to be able to run tests; the hashbash line isn't first meaning it couldn't be executed as./manage.py
directly.