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
F13335748: D21012.diff
Wed, Jun 19, 3:15 AM
F13309056: D21012.id.diff
Mon, Jun 10, 9:14 AM
F13260701: D21012.id50056.diff
Mon, May 27, 12:16 AM
F13258564: D21012.id50056.diff
Sun, May 26, 10:37 AM
F13239927: D21012.id.diff
Wed, May 22, 8:06 AM
F13236557: D21012.diff
May 21 2024, 10:08 AM
F13206719: D21012.diff
May 15 2024, 4:46 PM
Unknown Object (File)
May 7 2024, 1:11 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