forked from tangled.org/core
Monorepo for Tangled

fix issue creation

do we bother with migrations yet?

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