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#146 from xiangmy21/dev
refact(mentor): mentor info, message. id->uuid
- Loading branch information
Showing
13 changed files
with
34 additions
and
0 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
migrations/1709484224781_alter_table_public_mentor_message_alter_column_from_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"."mentor_message" alter column "from_id" set not null; |
1 change: 1 addition & 0 deletions
1
migrations/1709484224781_alter_table_public_mentor_message_alter_column_from_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"."mentor_message" alter column "from_id" drop not null; |
1 change: 1 addition & 0 deletions
1
migrations/1709484231334_alter_table_public_mentor_message_alter_column_to_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"."mentor_message" alter column "to_id" set not null; |
1 change: 1 addition & 0 deletions
1
migrations/1709484231334_alter_table_public_mentor_message_alter_column_to_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"."mentor_message" alter column "to_id" drop not null; |
1 change: 1 addition & 0 deletions
1
...tions/1709484444605_alter_table_public_mentor_application_alter_column_mentor_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"."mentor_application" alter column "mentor_id" set not null; |
1 change: 1 addition & 0 deletions
1
migrations/1709484444605_alter_table_public_mentor_application_alter_column_mentor_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"."mentor_application" alter column "mentor_id" drop not null; |
1 change: 1 addition & 0 deletions
1
...ions/1709484449866_alter_table_public_mentor_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"."mentor_application" alter column "student_id" set not null; |
1 change: 1 addition & 0 deletions
1
...ations/1709484449866_alter_table_public_mentor_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"."mentor_application" alter column "student_id" drop not null; |
4 changes: 4 additions & 0 deletions
4
migrations/1709485179476_modify_primarykey_public_mentor_info/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"."mentor_info" drop constraint "mentor_info_pkey"; | ||
alter table "public"."mentor_info" | ||
add constraint "mentor_info_pkey" | ||
primary key ("mentor_id"); |
6 changes: 6 additions & 0 deletions
6
migrations/1709485179476_modify_primarykey_public_mentor_info/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"."mentor_info" DROP CONSTRAINT "mentor_info_pkey"; | ||
|
||
ALTER TABLE "public"."mentor_info" | ||
ADD CONSTRAINT "mentor_info_pkey" PRIMARY KEY ("mentor_uuid"); | ||
COMMIT TRANSACTION; |
1 change: 1 addition & 0 deletions
1
migrations/1709485190641_alter_table_public_mentor_info_alter_column_mentor_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"."mentor_info" alter column "mentor_id" set not null; |
1 change: 1 addition & 0 deletions
1
migrations/1709485190641_alter_table_public_mentor_info_alter_column_mentor_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"."mentor_info" alter column "mentor_id" drop not null; |