Page MenuHomePhabricator

Update table schema for "AffectedPath" table
ClosedPublic

Authored by epriestley on Mar 15 2021, 10:37 PM.
Tags
None
Referenced Files
F19904043: D21617.id51453.diff
Tue, Mar 31, 6:14 AM
F19902243: D21617.id.diff
Mon, Mar 30, 4:51 PM
F19896649: D21617.diff
Sun, Mar 29, 4:21 AM
F19799872: D21617.id51464.diff
Feb 28 2026, 6:57 AM
F19500058: D21617.diff
Jan 8 2026, 2:09 PM
F19499979: D21617.diff
Jan 8 2026, 2:06 PM
F19033092: D21617.diff
Nov 25 2025, 8:49 AM
F19017825: D21617.diff
Nov 23 2025, 9:34 AM
Subscribers
Restricted Owners Package

Details

Summary

Ref T13639. Make schema changes:

  • Make repositoryID nullable, for revisions with no repository.
  • Remove "epoch", which has no readers and no clear use.
  • Change the ordering of the key, since "pathID" has more unique values and no queries ever issue without it.
Test Plan
  • Ran bin/storage upgrade, got a clean schema.
  • Reindexed all revisions with an external script.
  • Reviewed index via debug UI, saw appropriate index for non-repositoy revisions.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Mar 15 2021, 10:37 PM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 15 2021, 11:16 PM
This revision was automatically updated to reflect the committed changes.