-
Notifications
You must be signed in to change notification settings - Fork 24
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 #136 from xiangmy21/dev
refact(uuid): add many ..._uuid
Showing
33 changed files
with
169 additions
and
39 deletions.
There are no files selected for viewing
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
1 change: 1 addition & 0 deletions
1
...tions/1702832098679_alter_table_public_aid_application_alter_column_student_uuid/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 @@ | ||
alter table "public"."aid_application" alter column "student_uuid" drop not null; |
1 change: 1 addition & 0 deletions
1
migrations/1702832098679_alter_table_public_aid_application_alter_column_student_uuid/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 @@ | ||
alter table "public"."aid_application" alter column "student_uuid" set not null; |
1 change: 1 addition & 0 deletions
1
migrations/1702832163833_set_fk_public_aid_application_student_uuid/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 @@ | ||
alter table "public"."aid_application" drop constraint "aid_application_student_uuid_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1702832163833_set_fk_public_aid_application_student_uuid/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,5 @@ | ||
alter table "public"."aid_application" | ||
add constraint "aid_application_student_uuid_fkey" | ||
foreign key ("student_uuid") | ||
references "public"."users" | ||
("uuid") on update restrict on delete restrict; |
4 changes: 4 additions & 0 deletions
4
migrations/1702832652373_alter_table_public_contest_manager_add_column_user_uuid/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_manager" add column "user_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1702832652373_alter_table_public_contest_manager_add_column_user_uuid/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_manager" add column "user_uuid" uuid | ||
null; |
1 change: 1 addition & 0 deletions
1
migrations/1702832746125_set_fk_public_contest_manager_user_uuid/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 @@ | ||
alter table "public"."contest_manager" drop constraint "contest_manager_user_uuid_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1702832746125_set_fk_public_contest_manager_user_uuid/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,5 @@ | ||
alter table "public"."contest_manager" | ||
add constraint "contest_manager_user_uuid_fkey" | ||
foreign key ("user_uuid") | ||
references "public"."users" | ||
("uuid") on update restrict on delete restrict; |
4 changes: 4 additions & 0 deletions
4
...ations/1702832948652_alter_table_public_contest_team_add_column_team_leader_uuid/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_team" add column "team_leader_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1702832948652_alter_table_public_contest_team_add_column_team_leader_uuid/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" add column "team_leader_uuid" uuid | ||
null; |
1 change: 1 addition & 0 deletions
1
migrations/1702832966469_set_fk_public_contest_team_team_leader_uuid/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 @@ | ||
alter table "public"."contest_team" drop constraint "contest_team_team_leader_uuid_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1702832966469_set_fk_public_contest_team_team_leader_uuid/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,5 @@ | ||
alter table "public"."contest_team" | ||
add constraint "contest_team_team_leader_uuid_fkey" | ||
foreign key ("team_leader_uuid") | ||
references "public"."users" | ||
("uuid") on update restrict on delete restrict; |
4 changes: 4 additions & 0 deletions
4
...ations/1702833275566_alter_table_public_contest_team_member_add_column_user_uuid/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_team_member" add column "user_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1702833275566_alter_table_public_contest_team_member_add_column_user_uuid/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_member" add column "user_uuid" uuid | ||
null; |
1 change: 1 addition & 0 deletions
1
migrations/1702833292119_set_fk_public_contest_team_member_user_uuid/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 @@ | ||
alter table "public"."contest_team_member" drop constraint "contest_team_member_user_uuid_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1702833292119_set_fk_public_contest_team_member_user_uuid/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,5 @@ | ||
alter table "public"."contest_team_member" | ||
add constraint "contest_team_member_user_uuid_fkey" | ||
foreign key ("user_uuid") | ||
references "public"."users" | ||
("uuid") on update restrict on delete restrict; |
4 changes: 4 additions & 0 deletions
4
...tions/1702833580466_alter_table_public_honor_application_add_column_student_uuid/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"."honor_application" add column "student_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1702833580466_alter_table_public_honor_application_add_column_student_uuid/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"."honor_application" add column "student_uuid" uuid | ||
null; |
1 change: 1 addition & 0 deletions
1
migrations/1702833594283_set_fk_public_honor_application_student_uuid/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 @@ | ||
alter table "public"."honor_application" drop constraint "honor_application_student_uuid_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1702833594283_set_fk_public_honor_application_student_uuid/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,5 @@ | ||
alter table "public"."honor_application" | ||
add constraint "honor_application_student_uuid_fkey" | ||
foreign key ("student_uuid") | ||
references "public"."users" | ||
("uuid") on update restrict on delete restrict; |
4 changes: 4 additions & 0 deletions
4
...tions/1702834063169_alter_table_public_mentor_application_add_column_mentor_uuid/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"."mentor_application" add column "mentor_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1702834063169_alter_table_public_mentor_application_add_column_mentor_uuid/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"."mentor_application" add column "mentor_uuid" uuid | ||
null; |
4 changes: 4 additions & 0 deletions
4
...ions/1702834072265_alter_table_public_mentor_application_add_column_student_uuid/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"."mentor_application" add column "student_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
...ations/1702834072265_alter_table_public_mentor_application_add_column_student_uuid/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"."mentor_application" add column "student_uuid" uuid | ||
null; |
4 changes: 4 additions & 0 deletions
4
migrations/1702836362957_alter_table_public_mentor_available_add_column_mentor_uuid/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"."mentor_available" add column "mentor_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1702836362957_alter_table_public_mentor_available_add_column_mentor_uuid/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"."mentor_available" add column "mentor_uuid" uuid | ||
null; |
4 changes: 4 additions & 0 deletions
4
migrations/1702836449130_alter_table_public_mentor_info_add_column_mentor_uuid/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"."mentor_info" add column "mentor_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1702836449130_alter_table_public_mentor_info_add_column_mentor_uuid/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"."mentor_info" add column "mentor_uuid" uuid | ||
null; |
4 changes: 4 additions & 0 deletions
4
migrations/1702836464067_alter_table_public_mentor_message_add_column_from_uuid/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"."mentor_message" add column "from_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1702836464067_alter_table_public_mentor_message_add_column_from_uuid/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"."mentor_message" add column "from_uuid" uuid | ||
null; |
4 changes: 4 additions & 0 deletions
4
migrations/1702836471191_alter_table_public_mentor_message_add_column_to_uuid/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"."mentor_message" add column "to_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1702836471191_alter_table_public_mentor_message_add_column_to_uuid/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"."mentor_message" add column "to_uuid" uuid | ||
null; |