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;