anexia-it / django-rest-passwordreset

An extension of django rest framework, providing a configurable password reset strategy
BSD 3-Clause "New" or "Revised" License
419 stars 148 forks source link

Compatibility with production MYSQL Server #185

Open Darkbeast-glitch opened 10 months ago

Darkbeast-glitch commented 10 months ago

Is your feature request related to a problem? Please describe. Yes, get an error coming from this packages, which not allowing me to connect and migrate to the Azure mysql db, so this feature is adding new rule to the migration that will solve this issue(django_rest_passwordreset.0002_pk_migration)

Describe the solution you'd like To address the issue, you can modify this part of the code with the function (django_rest_passwordreset.0002_pk_migration) in migration to avoid removing primary key information directly. Instead, you can add a new 'key' field without the primary key constraint and then gradually transition to the new field. Here is an example modification:

Describe alternatives you've considered

Additional context Add any other context or screenshots about the feature request here.