Page MenuHomePhabricator

Migrate revision storage to modern status constants ("accepted") instead of legacy numeric values ("2")
ClosedPublic

Authored by epriestley on Aug 11 2017, 11:34 PM.
Tags
None
Referenced Files
F15697015: D18418.diff
Wed, May 28, 12:06 PM
Unknown Object (File)
Mon, May 19, 7:04 AM
Unknown Object (File)
Mon, May 5, 5:01 AM
Unknown Object (File)
Mon, May 5, 5:01 AM
Unknown Object (File)
Mon, May 5, 5:01 AM
Unknown Object (File)
Mon, May 5, 4:35 AM
Unknown Object (File)
Tue, Apr 29, 9:37 PM
Unknown Object (File)
Apr 28 2025, 8:58 PM
Subscribers
None

Details

Summary

Ref T2543. Rewrites all the storage to use constants.

Note that transactions still use legacy values, I'll migrate and update them separately.

Test Plan
  • Ran migration.
  • Browsed around, changed revision states, viewed dashboard, etc.
  • Selected DISTINCT() and GROUP_CONCAT() of the status field in the database, saw sane/expected before and after values.
  • Verified that old Conduit methods still return numeric constants for compatibility.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable