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
Unknown Object (File)
Feb 13 2024, 6:17 PM
Unknown Object (File)
Feb 7 2024, 10:55 AM
Unknown Object (File)
Feb 3 2024, 11:42 PM
Unknown Object (File)
Jan 25 2024, 2:11 AM
Unknown Object (File)
Jan 22 2024, 11:14 AM
Unknown Object (File)
Jan 21 2024, 4:46 PM
Unknown Object (File)
Jan 18 2024, 7:44 PM
Unknown Object (File)
Jan 7 2024, 4: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