8 lines · 421 B
-- Bytes relayed into partner repos by a fork pull request's bridges, charged to the head owner (GIT-14 / PR-12).
ALTER TABLE pull_requests ADD COLUMN bridged_bytes INTEGER NOT NULL DEFAULT 0;

CREATE INDEX pull_requests_bridged ON pull_requests(head_repo_id) WHERE bridged_bytes > 0;

-- Why an import's ref backfill stopped early, instead of only logging it (GIT-P11).
ALTER TABLE repos ADD COLUMN backfill_error TEXT;