Skip to content

Commit

Permalink
feat(hasura): remove action type
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Jul 20, 2023
1 parent dacbf66 commit f5875d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,24 @@ insert_permissions:
set:
user_id: x-hasura-User-Id
columns:
- chapter_id
- id
- chapter_id
- manga_id
- ref_activity
- action_type
- content
- user_id
- created_at
- user_id
- ref_activity
select_permissions:
- role: anonymous
permission:
columns:
- chapter_id
- id
- chapter_id
- manga_id
- ref_activity
- action_type
- content
- user_id
- created_at
- user_id
- ref_activity
filter: {}
allow_aggregations: true
- role: user
Expand All @@ -58,7 +56,6 @@ select_permissions:
- id
- chapter_id
- manga_id
- action_type
- content
- created_at
- user_id
Expand All @@ -69,14 +66,13 @@ update_permissions:
- role: user
permission:
columns:
- chapter_id
- id
- chapter_id
- manga_id
- ref_activity
- action_type
- content
- user_id
- created_at
- user_id
- ref_activity
filter:
user_id:
_eq: X-Hasura-User-Id
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table "public"."social_activities" alter column "action_type" drop not null;
alter table "public"."social_activities" add column "action_type" text;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."social_activities" drop column "action_type" cascade;

0 comments on commit f5875d3

Please sign in to comment.