···199199 unique(starred_by_did, repo_at)
200200 );
201201202202+ create table if not exists reactions (
203203+ id integer primary key autoincrement,
204204+ reacted_by_did text not null,
205205+ thread_at text not null,
206206+ kind text not null,
207207+ rkey text not null,
208208+ created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
209209+ unique(reacted_by_did, thread_at, kind)
210210+ );
211211+202212 create table if not exists emails (
203213 id integer primary key autoincrement,
204214 did text not null,
+2-2
appview/db/issues.go
···277277}
278278279279func GetIssueWithComments(e Execer, repoAt syntax.ATURI, issueId int) (*Issue, []Comment, error) {
280280- query := `select owner_did, issue_id, created, title, body, open from issues where repo_at = ? and issue_id = ?`
280280+ query := `select owner_did, issue_id, created, title, body, open, issue_at from issues where repo_at = ? and issue_id = ?`
281281 row := e.QueryRow(query, repoAt, issueId)
282282283283 var issue Issue
284284 var createdAt string
285285- err := row.Scan(&issue.OwnerDid, &issue.IssueId, &createdAt, &issue.Title, &issue.Body, &issue.Open)
285285+ err := row.Scan(&issue.OwnerDid, &issue.IssueId, &createdAt, &issue.Title, &issue.Body, &issue.Open, &issue.IssueAt)
286286 if err != nil {
287287 return nil, nil, err
288288 }