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.
fix: delete comment_comment table and and father relationship (eesast…
- Loading branch information
Showing
11 changed files
with
48 additions
and
177 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
3 changes: 3 additions & 0 deletions
3
migrations/1716721070980_drop_table_public_course_comment_comment/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,3 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- DROP table "public"."course_comment_comment"; |
1 change: 1 addition & 0 deletions
1
migrations/1716721070980_drop_table_public_course_comment_comment/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 @@ | ||
DROP table "public"."course_comment_comment"; |
4 changes: 4 additions & 0 deletions
4
migrations/1716721863423_alter_table_public_course_comment_add_column_parent_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"."course_comment" add column "parent_uuid" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1716721863423_alter_table_public_course_comment_add_column_parent_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"."course_comment" add column "parent_uuid" uuid | ||
null; |
1 change: 1 addition & 0 deletions
1
migrations/1716721897201_set_fk_public_course_comment_parent_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"."course_comment" drop constraint "course_comment_parent_uuid_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1716721897201_set_fk_public_course_comment_parent_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"."course_comment" | ||
add constraint "course_comment_parent_uuid_fkey" | ||
foreign key ("parent_uuid") | ||
references "public"."course_comment" | ||
("uuid") on update restrict on delete restrict; |
1 change: 1 addition & 0 deletions
1
migrations/1716723050648_rename_table_public_course_comment_star/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"."course_comment_stars" rename to "course_comment_star"; |
1 change: 1 addition & 0 deletions
1
migrations/1716723050648_rename_table_public_course_comment_star/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"."course_comment_star" rename to "course_comment_stars"; |
1 change: 1 addition & 0 deletions
1
migrations/1716723060912_rename_table_public_course_comment_like/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"."course_comment_likes" rename to "course_comment_like"; |
1 change: 1 addition & 0 deletions
1
migrations/1716723060912_rename_table_public_course_comment_like/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"."course_comment_like" rename to "course_comment_likes"; |