Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/dbv1/full_comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type FullComment struct {
IsArtistReacted bool `json:"is_artist_reacted"`
IsDelete bool `json:"-"`
IsMembersOnly bool `json:"is_members_only"`
VideoUrl *string `json:"video_url"`
IsTombstone bool `json:"is_tombstone"`
ReactCount int `json:"react_count"`
CreatedAt time.Time `json:"created_at"`
Expand Down Expand Up @@ -110,6 +111,7 @@ func (q *Queries) FullCommentsKeyed(ctx context.Context, arg GetCommentsParams)

comments.is_delete,
comments.is_members_only,
comments.video_url,

coalesce((
SELECT is_muted
Expand Down
1 change: 1 addition & 0 deletions api/dbv1/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions ddl/migrations/0194_add_comments_video_url.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
begin;
alter table comments add column if not exists video_url text;
commit;
3 changes: 2 additions & 1 deletion sql/01_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6780,7 +6780,8 @@ CREATE TABLE public.comments (
is_members_only boolean DEFAULT false NOT NULL,
txhash text NOT NULL,
blockhash text NOT NULL,
blocknumber integer
blocknumber integer,
video_url text
);


Expand Down
Loading