Skip to content

Commit

Permalink
Merge pull request #145 from xiangmy21/dev
Browse files Browse the repository at this point in the history
fix(uuid): foreign key cascade
  • Loading branch information
xiangmy21 authored Feb 25, 2024
2 parents 6904981 + 81aca59 commit d9db9ee
Show file tree
Hide file tree
Showing 24 changed files with 120 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_team" drop constraint "contest_team_team_leader_uuid_fkey",
add constraint "contest_team_team_leader_uuid_fkey"
foreign key ("team_leader_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_team" drop constraint "contest_team_team_leader_uuid_fkey",
add constraint "contest_team_team_leader_uuid_fkey"
foreign key ("team_leader_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."aid_application" drop constraint "aid_application_student_uuid_fkey",
add constraint "aid_application_student_uuid_fkey"
foreign key ("student_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."aid_application" drop constraint "aid_application_student_uuid_fkey",
add constraint "aid_application_student_uuid_fkey"
foreign key ("student_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_manager" drop constraint "contest_manager_user_uuid_fkey",
add constraint "contest_manager_user_uuid_fkey"
foreign key ("user_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_manager" drop constraint "contest_manager_user_uuid_fkey",
add constraint "contest_manager_user_uuid_fkey"
foreign key ("user_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_team_member" drop constraint "contest_team_member_user_uuid_fkey",
add constraint "contest_team_member_user_uuid_fkey"
foreign key ("user_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_team_member" drop constraint "contest_team_member_user_uuid_fkey",
add constraint "contest_team_member_user_uuid_fkey"
foreign key ("user_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."honor_application" drop constraint "honor_application_student_uuid_fkey",
add constraint "honor_application_student_uuid_fkey"
foreign key ("student_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."honor_application" drop constraint "honor_application_student_uuid_fkey",
add constraint "honor_application_student_uuid_fkey"
foreign key ("student_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_application" drop constraint "mentor_application_mentor_uuid_fkey",
add constraint "mentor_application_mentor_uuid_fkey"
foreign key ("mentor_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_application" drop constraint "mentor_application_mentor_uuid_fkey",
add constraint "mentor_application_mentor_uuid_fkey"
foreign key ("mentor_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_application" drop constraint "mentor_application_student_uuid_fkey",
add constraint "mentor_application_student_uuid_fkey"
foreign key ("student_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_application" drop constraint "mentor_application_student_uuid_fkey",
add constraint "mentor_application_student_uuid_fkey"
foreign key ("student_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_available" drop constraint "mentor_available_mentor_uuid_fkey",
add constraint "mentor_available_mentor_uuid_fkey"
foreign key ("mentor_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_available" drop constraint "mentor_available_mentor_uuid_fkey",
add constraint "mentor_available_mentor_uuid_fkey"
foreign key ("mentor_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_info" drop constraint "mentor_info_mentor_uuid_fkey",
add constraint "mentor_info_mentor_uuid_fkey"
foreign key ("mentor_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_info" drop constraint "mentor_info_mentor_uuid_fkey",
add constraint "mentor_info_mentor_uuid_fkey"
foreign key ("mentor_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_message" drop constraint "mentor_message_from_uuid_fkey",
add constraint "mentor_message_from_uuid_fkey"
foreign key ("from_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_message" drop constraint "mentor_message_from_uuid_fkey",
add constraint "mentor_message_from_uuid_fkey"
foreign key ("from_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_message" drop constraint "mentor_message_to_uuid_fkey",
add constraint "mentor_message_to_uuid_fkey"
foreign key ("to_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."mentor_message" drop constraint "mentor_message_to_uuid_fkey",
add constraint "mentor_message_to_uuid_fkey"
foreign key ("to_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."scholarship_application" drop constraint "scholarship_application_student_uuid_fkey",
add constraint "scholarship_application_student_uuid_fkey"
foreign key ("student_uuid")
references "public"."users"
("uuid") on update restrict on delete restrict;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."scholarship_application" drop constraint "scholarship_application_student_uuid_fkey",
add constraint "scholarship_application_student_uuid_fkey"
foreign key ("student_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;

0 comments on commit d9db9ee

Please sign in to comment.