-
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.
Loading status checks…
Merge pull request #149 from xiangmy21/dev
refact: delete user table
Showing
47 changed files
with
131 additions
and
356 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +0,0 @@ | ||
type Query { | ||
user_by_role( | ||
role: String! | ||
): [user_by_role_user!]! | ||
} | ||
|
||
type user_by_role_user { | ||
_id: String! | ||
name: String! | ||
department: String! | ||
} | ||
|
||
type user_by_role_users { | ||
uuid: uuid! | ||
realname: String! | ||
department: String! | ||
} | ||
|
||
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 |
---|---|---|
@@ -1,30 +1,6 @@ | ||
actions: | ||
- name: user_by_role | ||
definition: | ||
kind: "" | ||
handler: https://api.eesast.com/user/user_by_role | ||
forward_client_headers: true | ||
headers: | ||
- name: x-hasura-action-secret | ||
value_from_env: ACTION_SECRET | ||
permissions: | ||
- role: teacher | ||
- role: root | ||
- role: counselor | ||
- role: student | ||
actions: [] | ||
custom_types: | ||
enums: [] | ||
input_objects: [] | ||
objects: | ||
- name: user_by_role_user | ||
relationships: | ||
- field_mapping: | ||
_id: _id | ||
name: user | ||
remote_table: | ||
name: user | ||
schema: public | ||
source: default | ||
type: object | ||
- name: user_by_role_users | ||
objects: [] | ||
scalars: [] |
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
migrations/1710077526580_modify_primarykey_public_contest_team_member/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 @@ | ||
alter table "public"."contest_team_member" drop constraint "contest_team_member_pkey"; | ||
alter table "public"."contest_team_member" | ||
add constraint "contest_team_member_pkey" | ||
primary key ("user_id", "team_id"); |
6 changes: 6 additions & 0 deletions
6
migrations/1710077526580_modify_primarykey_public_contest_team_member/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,6 @@ | ||
BEGIN TRANSACTION; | ||
ALTER TABLE "public"."contest_team_member" DROP CONSTRAINT "contest_team_member_pkey"; | ||
|
||
ALTER TABLE "public"."contest_team_member" | ||
ADD CONSTRAINT "contest_team_member_pkey" PRIMARY KEY ("user_uuid", "team_id"); | ||
COMMIT TRANSACTION; |
1 change: 1 addition & 0 deletions
1
...tions/1710077714051_alter_table_public_honor_application_alter_column_student_id/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" alter column "student_id" set not null; |
1 change: 1 addition & 0 deletions
1
migrations/1710077714051_alter_table_public_honor_application_alter_column_student_id/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"."honor_application" alter column "student_id" drop not null; |
5 changes: 5 additions & 0 deletions
5
...78478629_delete_fk_public_mentor_application_mentor_application_student_id_fkey1/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,5 @@ | ||
alter table "public"."mentor_application" | ||
add constraint "mentor_application_student_id_fkey1" | ||
foreign key ("student_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...0078478629_delete_fk_public_mentor_application_mentor_application_student_id_fkey1/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"."mentor_application" drop constraint "mentor_application_student_id_fkey1"; |
5 changes: 5 additions & 0 deletions
5
...078483254_delete_fk_public_mentor_application_mentor_application_mentor_id_fkey1/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,5 @@ | ||
alter table "public"."mentor_application" | ||
add constraint "mentor_application_mentor_id_fkey1" | ||
foreign key ("mentor_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...10078483254_delete_fk_public_mentor_application_mentor_application_mentor_id_fkey1/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"."mentor_application" drop constraint "mentor_application_mentor_id_fkey1"; |
5 changes: 5 additions & 0 deletions
5
...delete_fk_public_scholarship_application_scholarship_application_student_id_fkey/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,5 @@ | ||
alter table "public"."scholarship_application" | ||
add constraint "scholarship_application_student_id_fkey" | ||
foreign key ("student_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...5_delete_fk_public_scholarship_application_scholarship_application_student_id_fkey/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"."scholarship_application" drop constraint "scholarship_application_student_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
..._delete_fk_public_postgraduate_mentor_info_postgraduate_mentor_info_user_id_fkey/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,5 @@ | ||
alter table "public"."postgraduate_mentor_info" | ||
add constraint "postgraduate_mentor_info_user_id_fkey" | ||
foreign key ("user_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...68_delete_fk_public_postgraduate_mentor_info_postgraduate_mentor_info_user_id_fkey/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"."postgraduate_mentor_info" drop constraint "postgraduate_mentor_info_user_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
...4_delete_fk_public_postgraduate_mentor_info_postgraduate_mentor_info_editor_fkey/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,5 @@ | ||
alter table "public"."postgraduate_mentor_info" | ||
add constraint "postgraduate_mentor_info_editor_fkey" | ||
foreign key ("editor") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...204_delete_fk_public_postgraduate_mentor_info_postgraduate_mentor_info_editor_fkey/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"."postgraduate_mentor_info" drop constraint "postgraduate_mentor_info_editor_fkey"; |
5 changes: 5 additions & 0 deletions
5
...c_postgraduate_application_history_postgraduate_application_history_user_id_fkey/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,5 @@ | ||
alter table "public"."postgraduate_application_history" | ||
add constraint "postgraduate_application_history_user_id_fkey" | ||
foreign key ("user_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...lic_postgraduate_application_history_postgraduate_application_history_user_id_fkey/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"."postgraduate_application_history" drop constraint "postgraduate_application_history_user_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
..._delete_fk_public_postgraduate_application_postgraduate_application_user_id_fkey/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,5 @@ | ||
alter table "public"."postgraduate_application" | ||
add constraint "postgraduate_application_user_id_fkey" | ||
foreign key ("user_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...84_delete_fk_public_postgraduate_application_postgraduate_application_user_id_fkey/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"."postgraduate_application" drop constraint "postgraduate_application_user_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
...ations/1710081259023_delete_fk_public_mentor_message_mentor_message_from_id_fkey/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,5 @@ | ||
alter table "public"."mentor_message" | ||
add constraint "mentor_message_from_id_fkey" | ||
foreign key ("from_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
migrations/1710081259023_delete_fk_public_mentor_message_mentor_message_from_id_fkey/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"."mentor_message" drop constraint "mentor_message_from_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1710081263806_delete_fk_public_mentor_message_mentor_message_to_id_fkey/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,5 @@ | ||
alter table "public"."mentor_message" | ||
add constraint "mentor_message_to_id_fkey" | ||
foreign key ("to_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
migrations/1710081263806_delete_fk_public_mentor_message_mentor_message_to_id_fkey/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"."mentor_message" drop constraint "mentor_message_to_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1710081349251_delete_fk_public_mentor_info_mentor_info_mentor_id_fkey/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,5 @@ | ||
alter table "public"."mentor_info" | ||
add constraint "mentor_info_mentor_id_fkey" | ||
foreign key ("mentor_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
migrations/1710081349251_delete_fk_public_mentor_info_mentor_info_mentor_id_fkey/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"."mentor_info" drop constraint "mentor_info_mentor_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
.../1710081387219_delete_fk_public_mentor_available_mentor_available_mentor_id_fkey/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,5 @@ | ||
alter table "public"."mentor_available" | ||
add constraint "mentor_available_mentor_id_fkey" | ||
foreign key ("mentor_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...ns/1710081387219_delete_fk_public_mentor_available_mentor_available_mentor_id_fkey/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"."mentor_available" drop constraint "mentor_available_mentor_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
...0081972268_delete_fk_public_contest_team_member_contest_team_member_user_id_fkey/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,5 @@ | ||
alter table "public"."contest_team_member" | ||
add constraint "contest_team_member_user_id_fkey" | ||
foreign key ("user_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...710081972268_delete_fk_public_contest_team_member_contest_team_member_user_id_fkey/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"."contest_team_member" drop constraint "contest_team_member_user_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
...ations/1710081992196_delete_fk_public_contest_team_contest_team_team_leader_fkey/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,5 @@ | ||
alter table "public"."contest_team" | ||
add constraint "contest_team_team_leader_fkey" | ||
foreign key ("team_leader") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
migrations/1710081992196_delete_fk_public_contest_team_contest_team_team_leader_fkey/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"."contest_team" drop constraint "contest_team_team_leader_fkey"; |
5 changes: 5 additions & 0 deletions
5
...ions/1710082019794_delete_fk_public_contest_manager_contest_manager_user_id_fkey/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,5 @@ | ||
alter table "public"."contest_manager" | ||
add constraint "contest_manager_user_id_fkey" | ||
foreign key ("user_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...ations/1710082019794_delete_fk_public_contest_manager_contest_manager_user_id_fkey/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"."contest_manager" drop constraint "contest_manager_user_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
...10082076557_delete_fk_public_honor_application_honor_application_student_id_fkey/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,5 @@ | ||
alter table "public"."honor_application" | ||
add constraint "honor_application_student_id_fkey" | ||
foreign key ("student_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...1710082076557_delete_fk_public_honor_application_honor_application_student_id_fkey/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"."honor_application" drop constraint "honor_application_student_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
...c_postgraduate_mentor_info_pending_postgraduate_mentor_info_pending_user_id_fkey/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,5 @@ | ||
alter table "public"."postgraduate_mentor_info_pending" | ||
add constraint "postgraduate_mentor_info_pending_user_id_fkey" | ||
foreign key ("user_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...lic_postgraduate_mentor_info_pending_postgraduate_mentor_info_pending_user_id_fkey/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"."postgraduate_mentor_info_pending" drop constraint "postgraduate_mentor_info_pending_user_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1710088450231_set_fk_public_aid_application_student_id/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,5 @@ | ||
alter table "public"."aid_application" drop constraint "aid_application_student_id_fkey", | ||
add constraint "aid_application_student_id_fkey" | ||
foreign key ("student_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
5 changes: 5 additions & 0 deletions
5
migrations/1710088450231_set_fk_public_aid_application_student_id/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" drop constraint "aid_application_student_id_fkey", | ||
add constraint "aid_application_student_id_fkey" | ||
foreign key ("student_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
5 changes: 5 additions & 0 deletions
5
...s/1710088453476_delete_fk_public_aid_application_aid_application_student_id_fkey/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,5 @@ | ||
alter table "public"."aid_application" | ||
add constraint "aid_application_student_id_fkey" | ||
foreign key ("student_id") | ||
references "public"."user" | ||
("_id") on update cascade on delete cascade; |
1 change: 1 addition & 0 deletions
1
...ons/1710088453476_delete_fk_public_aid_application_aid_application_student_id_fkey/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" drop constraint "aid_application_student_id_fkey"; |
1 change: 1 addition & 0 deletions
1
...ations/1710089438996_alter_table_public_contest_team_member_alter_column_user_id/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" alter column "user_id" set not null; |
1 change: 1 addition & 0 deletions
1
migrations/1710089438996_alter_table_public_contest_team_member_alter_column_user_id/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"."contest_team_member" alter column "user_id" drop not null; |
1 change: 1 addition & 0 deletions
1
migrations/1710089592993_alter_table_public_mentor_available_alter_column_available/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"."mentor_available" alter column "available" set default 'true'; |
1 change: 1 addition & 0 deletions
1
migrations/1710089592993_alter_table_public_mentor_available_alter_column_available/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"."mentor_available" alter column "available" set default 'false'; |