Comment (by Max F.):
Hi Mariusz,
Thanks for the quick response! As far as the patch goes, I'd love to
contribute (first time reporting a bug) but I think it'd be better to let
someone else pick it up.
I tried to by following along with
[https://docs.djangoproject.com/en/dev/intro/contributing/#writing-your-
first-patch-for-django]; however, I'm having some difficulty figuring out
how to just get the tests to run using MySQL 5.7 in the first place 😕.
{{{
File "/Users/maxwellfisco/django-
fork/django/django/db/backends/base/base.py", line 214, in
check_database_version_supported
raise NotSupportedError(
django.db.utils.NotSupportedError: MySQL 8 or later is required (found
5.7.40).
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Mariusz Felisiak):
Replying to [comment:2 Max Fisco]:
> Hi Mariusz,
>
> Thanks for the quick response! As far as the patch goes, I'd love to
contribute (first time reporting a bug) but I think it'd be better to let
someone else pick it up.
>
> I tried to by following along with
[https://docs.djangoproject.com/en/dev/intro/contributing/#writing-your-
first-patch-for-django]; however, I'm having some difficulty figuring out
how to just get the tests to run using MySQL 5.7 in the first place 😕.
>
> {{{
>
> File "/Users/maxwellfisco/django-
fork/django/django/db/backends/base/base.py", line 214, in
check_database_version_supported
> raise NotSupportedError(
> django.db.utils.NotSupportedError: MySQL 8 or later is required (found
5.7.40).
> }}}
Django 4.2 no longer supports MySQL < 8, so you need to use MySQL 8 to
test against the current `main` branch.
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:3>
Comment (by Bhuvnesh):
Hi Max, if you are working on this issue please assign it to yourself, if
not, i would like to submit a patch. 🙂
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:4>
Comment (by Max Fisco):
Replying to [comment:4 Bhuvnesh]:
> Hi Max, if you are working on this issue please assign it to yourself,
if not, i would like to submit a patch. 🙂
Hi Bhuvnesh, I apologize for leaving it ambiguous, go ahead and submit the
patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:5>
* owner: nobody => Bhuvnesh
* status: new => assigned
Comment:
Okay ,Thanks !
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:6>
* cc: David Wobrock (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:7>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/16405 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:8>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"68ef274bc505cd44f305c03cbf84cf08826200a8" 68ef274b]:
{{{
#!CommitTicketReference repository=""
revision="68ef274bc505cd44f305c03cbf84cf08826200a8"
Fixed #34217 -- Fixed migration crash when removing check constraints on
MySQL < 8.0.16.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:10>
Comment (by GitHub <noreply@…>):
In [changeset:"16c966ff7fc9ce01e3afd87ef2af55859cadb587" 16c966ff]:
{{{
#!CommitTicketReference repository=""
revision="16c966ff7fc9ce01e3afd87ef2af55859cadb587"
Refs #30060, Refs #34217 -- Made SchemaEditor not generate SQL for
CheckConstraint if not supported.
The new logic mirrors the logic in SchemaEditor._delete_check_sql()
added in 68ef274bc505cd44f305c03cbf84cf08826200a8.
Thanks Tim Graham for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34217#comment:11>