+2
-2
appview/db/db.go
+2
-2
appview/db/db.go
···
81
id integer primary key autoincrement,
82
owner_did text not null,
83
repo_at text not null,
84
-
issue_id integer not null unique,
85
title text not null,
86
body text not null,
87
open integer not null default 1,
···
100
body text not null,
101
created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
102
unique(issue_id, comment_id),
103
-
foreign key (issue_id) references issues(issue_id) on delete cascade
104
);
105
create table if not exists _jetstream (
106
id integer primary key autoincrement,
···
81
id integer primary key autoincrement,
82
owner_did text not null,
83
repo_at text not null,
84
+
issue_id integer not null,
85
title text not null,
86
body text not null,
87
open integer not null default 1,
···
100
body text not null,
101
created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
102
unique(issue_id, comment_id),
103
+
foreign key (repo_at, issue_id) references issues(repo_at, issue_id) on delete cascade
104
);
105
create table if not exists _jetstream (
106
id integer primary key autoincrement,