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

Commit

Permalink
Merge pull request eesast#146 from xiangmy21/dev
Browse files Browse the repository at this point in the history
refact(mentor): mentor info, message. id->uuid
  • Loading branch information
xiangmy21 authored Mar 3, 2024
2 parents d9db9ee + 8e96f27 commit 77f9dfd
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 0 deletions.
14 changes: 14 additions & 0 deletions metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2796,6 +2796,20 @@
name: mentor_available
schema: public
array_relationships:
- name: contest_team_members
using:
foreign_key_constraint_on:
column: user_id
table:
name: contest_team_member
schema: public
- name: contest_teams
using:
foreign_key_constraint_on:
column: team_leader
table:
name: contest_team
schema: public
- name: mentor_applications_mentor
using:
foreign_key_constraint_on:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_message" alter column "from_id" set not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_message" alter column "from_id" drop not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_message" alter column "to_id" set not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_message" alter column "to_id" drop not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_application" alter column "mentor_id" set not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_application" alter column "mentor_id" drop not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_application" alter column "student_id" set not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_application" alter column "student_id" drop not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
alter table "public"."mentor_info" drop constraint "mentor_info_pkey";
alter table "public"."mentor_info"
add constraint "mentor_info_pkey"
primary key ("mentor_id");
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BEGIN TRANSACTION;
ALTER TABLE "public"."mentor_info" DROP CONSTRAINT "mentor_info_pkey";

ALTER TABLE "public"."mentor_info"
ADD CONSTRAINT "mentor_info_pkey" PRIMARY KEY ("mentor_uuid");
COMMIT TRANSACTION;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_info" alter column "mentor_id" set not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_info" alter column "mentor_id" drop not null;

0 comments on commit 77f9dfd

Please sign in to comment.