Skip to content

Commit

Permalink
add: ad delete course comment property (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzdhybthu authored May 31, 2024
1 parent 6b7b5e8 commit a0d9f0e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 16 deletions.
41 changes: 25 additions & 16 deletions metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2309,43 +2309,47 @@
check: {}
columns:
- comment
- created_at
- updated_at
- course_id
- created_at
- deleted
- parent_uuid
- updated_at
- user_uuid
- uuid
- role: student
permission:
check: {}
columns:
- comment
- created_at
- updated_at
- course_id
- created_at
- deleted
- parent_uuid
- updated_at
- user_uuid
- uuid
- role: teacher
permission:
check: {}
columns:
- comment
- created_at
- updated_at
- course_id
- created_at
- deleted
- parent_uuid
- updated_at
- user_uuid
- uuid
select_permissions:
- role: counselor
permission:
columns:
- comment
- created_at
- updated_at
- course_id
- created_at
- deleted
- parent_uuid
- updated_at
- user_uuid
- uuid
filter: {}
Expand All @@ -2354,10 +2358,11 @@
permission:
columns:
- comment
- created_at
- updated_at
- course_id
- created_at
- deleted
- parent_uuid
- updated_at
- user_uuid
- uuid
filter: {}
Expand All @@ -2368,6 +2373,7 @@
- comment
- course_id
- created_at
- deleted
- parent_uuid
- updated_at
- user_uuid
Expand All @@ -2379,10 +2385,11 @@
permission:
columns:
- comment
- created_at
- updated_at
- course_id
- created_at
- deleted
- parent_uuid
- updated_at
- user_uuid
- uuid
filter: {}
Expand All @@ -2391,10 +2398,11 @@
permission:
columns:
- comment
- created_at
- updated_at
- course_id
- created_at
- deleted
- parent_uuid
- updated_at
- user_uuid
- uuid
filter: {}
Expand All @@ -2403,10 +2411,11 @@
permission:
columns:
- comment
- created_at
- updated_at
- course_id
- created_at
- deleted
- parent_uuid
- updated_at
- user_uuid
- uuid
filter: {}
Expand Down
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 "deleted" boolean
-- null default 'false';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table "public"."course_comment" add column "deleted" boolean
null default 'false';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."course_comment" alter column "deleted" drop not null;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."course_comment" alter column "deleted" set not null;

0 comments on commit a0d9f0e

Please sign in to comment.