Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
feat(team): invited_code non-nullable & unique
Browse files Browse the repository at this point in the history
  • Loading branch information
FranGuam committed Apr 1, 2024
1 parent e3e4d06 commit 38eb9c9
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 "public"."contest_team" drop constraint "contest_team_invited_code_key";
alter table "public"."contest_team" alter column "invited_code" drop not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table "public"."contest_team" alter column "invited_code" set not null;
alter table "public"."contest_team" add constraint "contest_team_invited_code_key" unique ("invited_code");

0 comments on commit 38eb9c9

Please sign in to comment.