Page MenuHomePhabricator

Remove an ancient no-op check for duplicated external accounts
ClosedPublic

Authored by epriestley on Feb 21 2020, 12:11 AM.
Tags
None
Referenced Files
F18963515: D21012.id50075.diff
Thu, Nov 13, 11:49 PM
F18889018: D21012.id50075.diff
Fri, Nov 7, 7:59 AM
F18889017: D21012.id50056.diff
Fri, Nov 7, 7:59 AM
F18888740: D21012.diff
Fri, Nov 7, 7:39 AM
F18866434: D21012.id50075.diff
Mon, Nov 3, 5:05 PM
F18865903: D21012.id50075.diff
Mon, Nov 3, 2:32 PM
F18863925: D21012.id50075.diff
Mon, Nov 3, 2:05 AM
F18854944: D21012.id50075.diff
Sat, Nov 1, 1:23 AM
Subscribers
None

Details

Summary

Ref T13493. This check was introduced in D4647, but the condition can never be reached in modern Phabricator because the table has a unique key on <accountType, accountDomain, accountID> -- so no row can ever exist with the same value for that tuple but a different ID.

(I'm not entirely sure if it was reachable in D4647 either.)

Test Plan

Used SHOW CREATE TABLE to look at keys on the table and reasoned that this block can never have any effect.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable