Closed
Description
Describe the bug
The AccessToken has a new checksum field, that is both unique
and blank
, which means that existing tokens will be assigned empty checksum by default. However, empty string is not unique.
django.db.utils.IntegrityError: could not create unique index oauth2_provider_accesstoken_token_checksum_key"
DETAIL: Key (token_checksum)=() is duplicated.
To Reproduce
Run migrate on an existing database.
Expected behavior
The migration should run successfully.
Version
3.0.0
- I have tested with the latest published release and it's still a problem.
- I have tested with the master branch and it's still a problem.
Additional context