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
F19515192: D21012.diff
Wed, Jan 14, 9:03 AM
F19515185: D21012.id.diff
Wed, Jan 14, 8:58 AM
F19513666: D21012.id50075.diff
Tue, Jan 13, 3:35 PM
F19510749: D21012.diff
Sun, Jan 11, 2:17 PM
F19148666: D21012.diff
Dec 10 2025, 6:25 PM
F19132678: D21012.id50075.diff
Dec 10 2025, 6:20 AM
F19041691: D21012.id50075.diff
Nov 26 2025, 4:35 PM
F18963515: D21012.id50075.diff
Nov 13 2025, 11:49 PM
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