This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
forked from eesast/hasura
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eesast#162 from FranGuam/dev
feat(team): add `team_switch` field in `contest`
- Loading branch information
Showing
4 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
migrations/1711975883989_alter_table_public_contest_add_column_team_switch/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."contest" add column "team_switch" boolean | ||
-- not null default 'false'; |
2 changes: 2 additions & 0 deletions
2
migrations/1711975883989_alter_table_public_contest_add_column_team_switch/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."contest" add column "team_switch" boolean | ||
not null default 'false'; |
2 changes: 2 additions & 0 deletions
2
migrations/1711976030452_alter_table_public_contest_team_alter_column_invited_code/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
2 changes: 2 additions & 0 deletions
2
migrations/1711976030452_alter_table_public_contest_team_alter_column_invited_code/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |