Skip to content

Commit

Permalink
fix: add resource_id to grant unique index (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmatrhd authored Oct 16, 2023
1 parent 8756bf7 commit 502d2bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CREATE UNIQUE INDEX IF NOT EXISTS "unique_active_grants_index" ON "grants" ("account_id", "account_type", "permissions")
CREATE UNIQUE INDEX IF NOT EXISTS "unique_active_grants_index" ON "grants" ("account_id", "account_type", "resource_id", "permissions")
WHERE
"status" = 'active';
"status" = 'active';

0 comments on commit 502d2bf

Please sign in to comment.