From 7ee20544019fa45bf178232cc5ac9f3971f45706 Mon Sep 17 00:00:00 2001 From: eti Date: Fri, 30 Oct 2026 14:05:29 +0100 Subject: [PATCH] knotmirror-db: add commit detail columns to seen_commits Signed-off-by: eti --- .../migrations/20261030000000_commit_details.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 knotmirror/crates/knotmirror-db/migrations/20261030000000_commit_details.sql diff --git a/knotmirror/crates/knotmirror-db/migrations/20261030000000_commit_details.sql b/knotmirror/crates/knotmirror-db/migrations/20261030000000_commit_details.sql new file mode 100644 index 000000000..c64542097 --- /dev/null +++ b/knotmirror/crates/knotmirror-db/migrations/20261030000000_commit_details.sql @@ -0,0 +1,13 @@ +alter table seen_commits + add column repo_did text, + add column committer text, + add column committed_at timestamptz, + add column subject text; + +create index if not exists idx_seen_commits_committer + on seen_commits (committer, month, committed_at desc) + where committer is not null; + +update repos +set activity_synced_at = null, activity_tips = '{}' +where deleted_at is null; -- knotmirror 0.0.1