Skip to content

Fix duplicate unique constraint for device_code (#1656)#1659

Open
febin-micheal wants to merge 2 commits intodjango-oauth:masterfrom
febin-micheal:fix-oracle-device-grant-issue
Open

Fix duplicate unique constraint for device_code (#1656)#1659
febin-micheal wants to merge 2 commits intodjango-oauth:masterfrom
febin-micheal:fix-oracle-device-grant-issue

Conversation

@febin-micheal
Copy link

@febin-micheal febin-micheal commented Feb 27, 2026

Fixes #1656

Description of the Change

This PR fixes issue #1656 by removing the second UniqueConstraint definition from DeviceGrant that causes ORA-02261 on Oracle 19c deployments. Verified locally that this doesn't break PostgreSQL logic and added tests passing.
Also added febin-micheal to authors and #1656 to changelog.

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name in AUTHORS
  • tests/app/idp updated to demonstrate new features
  • tests/app/rp updated to demonstrate new features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeviceGrant table definition breaks in Oracle 19c env

1 participant