New Django Migrations Generated when attempting to upgrade from dj-stripe < 2.4.3 to 2.4.3
See original GitHub issueSoftware versions
- Upgrading from dj-stripe version: < 2.4.3
- Upgrading to dj-stripe version: 2.4.3
- Python version: 3.7.10
- Django version: 3.2
- Database type and version: PG 11
- Failing migration id: 0008
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
- Create an empty Django project
- install dj-stripe
- run migrations
- set
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
- new migration
0008
is made for dj-stripe
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (9 by maintainers)
Top Results From Across the Web
Release Process - Dj-Stripe
Then transition the squashed migration to a normal migration as per Django: Delete all the migration files it replaces; Update all migrations that...
Read more >Migrations - Django documentation
Migrations ¶. Migrations are Django's way of propagating changes you make to your models (adding a field, deleting a model, etc.) into your...
Read more >Version History and Release Notes - Pegasus documentation
A new example page showing how to use feature flags in Python, Django templates ... The major change that requires care in upgrading...
Read more >dj-stripe 2.2.3 - PyPI
dj-stripe implements all of the Stripe models, for Django. Set up your webhook and start receiving model updates. You will then have a...
Read more >pyupgrade and dj-stripe - Building SaaS with Python and ...
In this episode, I added pyupgrade to my pre-commit setup to get the latest Python syntax features for my app automatically.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, but we can hard-specify the auto field to be a bigautofield there.
@jleclanche running into some annoying issues getting set up in case you have any thoughts: https://github.com/dj-stripe/dj-stripe/issues/1348