From f820912a81028966fd342f69cf693de9a8006bd9 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 4 Mar 2025 22:43:27 +0000 Subject: [PATCH] fix issue creation do we bother with migrations yet? --- appview/db/db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appview/db/db.go b/appview/db/db.go index ad0c957e..8e5862f0 100644 --- a/appview/db/db.go +++ b/appview/db/db.go @@ -81,7 +81,7 @@ func Make(dbPath string) (*DB, error) { id integer primary key autoincrement, owner_did text not null, repo_at text not null, - issue_id integer not null unique, + issue_id integer not null, title text not null, body text not null, open integer not null default 1, @@ -100,7 +100,7 @@ func Make(dbPath string) (*DB, error) { body text not null, created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')), unique(issue_id, comment_id), - foreign key (issue_id) references issues(issue_id) on delete cascade + foreign key (repo_at, issue_id) references issues(repo_at, issue_id) on delete cascade ); create table if not exists _jetstream ( id integer primary key autoincrement, -- 2.54.0