You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The migration 0002 fails because of the populate_auto_incrementing_pk_field function. When using ResetPasswordToken.objects.all(), it doesn't take in consideration extra databases. It should be something like ResetPasswordToken.objects.using(database_name).all()
How to reproduce
Create a second database. Migrate the new database (python manage.py migrate DATABASE=db2)
Expected behavior
The database I want to migrate is migrated without errors with the 0002_pk_migration.py migration.
The text was updated successfully, but these errors were encountered:
Describe the bug
The migration 0002 fails because of the populate_auto_incrementing_pk_field function. When using ResetPasswordToken.objects.all(), it doesn't take in consideration extra databases. It should be something like ResetPasswordToken.objects.using(database_name).all()
How to reproduce
Create a second database. Migrate the new database (python manage.py migrate DATABASE=db2)
Expected behavior
The database I want to migrate is migrated without errors with the 0002_pk_migration.py migration.
The text was updated successfully, but these errors were encountered: