-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
New Django Migrations Generated when attempting to upgrade from dj-stripe < 2.4.3 to 2.4.3 #1344
Comments
Thanks for the report. I'm pretty sure that's intended though. What's supposed to happen there? I guess we could be force-specifying this ourselves; wouldn't be a terrible idea. |
I think that if dj-stripe needs to add a 0008 migration in the future, this will cause headache/confusion for those who accidentally run the auto-generated 0008. |
Can you post a gist.github.com of what the migration looks like please? |
Hm, okay, that's less bad than I expected. I think we can just fix those two. |
I think the rub here is that any one upgrading who uses a non-standard |
No, but we can hard-specify the auto field to be a bigautofield there. |
Just got bit by this as well. I see this has been moved to the |
@czue There's no hard timeline, but if you want to contribute a fix I can review/merge it. A migrationless autofield for 2.4.x is a reasonable solution yeah. In general right now dj-stripe is starved for development. If you want to help contribute, we could really use the help; we even have a sponsorship program active for regular contributors, see #1221. If you're interested let me know and I can help coach you through the codebase. |
Hey @jleclanche - I'm interested! I"ll give this change a shot and see how it goes. 🙏 |
Sweet :) Yeah just CC me on the PR and I'll take a look; if you go the AutoField route I can release a minor version with it. For further contributions feel free to book some time with me here if you want me to take you through the codebase and what sort of things need to be done :) |
@jleclanche running into some annoying issues getting set up in case you have any thoughts: #1348 |
Software versions
Can you reproduce the issue with the latest version of master?
Yes
Describe the issue
In Django 3.2, setting
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
and running makemigrations on an existing project causes a new migration to be made for dj-stripe.Steps To Reproduce
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
0008
is made for dj-stripeThe text was updated successfully, but these errors were encountered: