Page MenuHomePhabricator

Update table schema for "AffectedPath" table
ClosedPublic

Authored by epriestley on Mon, Mar 15, 10:37 PM.

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.Mon, Mar 15, 10:37 PM
This revision was not accepted when it landed; it landed in state Needs Review.Mon, Mar 15, 11:16 PM
This revision was automatically updated to reflect the committed changes.