Skip to content

Commit

Permalink
sp_group_users add uniq on (user_id, group_id)
Browse files Browse the repository at this point in the history
  • Loading branch information
param108 committed Feb 25, 2024
1 parent d034770 commit ade311a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE sp_group_users
DROP CONSTRAINT sp_group_users_group_id_user_id_uniq;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE sp_group_users
ADD CONSTRAINT sp_group_users_group_id_user_id_uniq UNIQUE(sp_group_id, sp_user_id);

0 comments on commit ade311a

Please sign in to comment.