Monorepo for Tangled tangled.org
8

Configure Feed

Select the types of activity you want to include in your feed.

appview/db: restore legacy comments table

appview db migration is failing when started from scratch.

Signed-off-by: Seongmin Lee <git@boltless.me>

author
Seongmin Lee
committer
Tangled
date (May 24, 2026, 7:41 PM +0300) commit ffc41510 parent a0cae1a0 change-id orsttpsm
+12
+12
appview/db/db.go
··· 117 117 unique(repo_at, issue_id), 118 118 foreign key (repo_at) references repos(at_uri) on delete cascade 119 119 ); 120 + create table if not exists comments ( 121 + id integer primary key autoincrement, 122 + owner_did text not null, 123 + issue_id integer not null, 124 + repo_at text not null, 125 + comment_id integer not null, 126 + comment_at text not null, 127 + body text not null, 128 + created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')), 129 + unique(issue_id, comment_id), 130 + foreign key (repo_at, issue_id) references issues(repo_at, issue_id) on delete cascade 131 + ); 120 132 create table if not exists pulls ( 121 133 -- identifiers 122 134 id integer primary key autoincrement,