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
Unknown Object (File)
Tue, Jun 30, 10:57 PM
Unknown Object (File)
Thu, Jun 25, 1:02 PM
Unknown Object (File)
Thu, Jun 25, 1:02 PM
Unknown Object (File)
Thu, Jun 25, 1:02 PM
Unknown Object (File)
Thu, Jun 25, 1:01 PM
Unknown Object (File)
Wed, Jun 24, 10:07 AM
Unknown Object (File)
Sun, Jun 21, 4:51 AM
Unknown Object (File)
Apr 17 2026, 5:43 AM
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