Fixes T1768. This is mostly a data cleanliness issue as duplicate rows don't really do anything, but let's clear it up now.
Details
Details
- Reviewers
epriestley - Maniphest Tasks
- Restricted Maniphest Task
- Commits
- Restricted Diffusion Commit
rP310373ebc43f: Audit - delete duplicate audit requests and add unique key
made some duplicate rows by adding the same auditor multiple times. ran ./bin/storage upgrade and it worked perfectly!
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
resources/sql/autopatches/20141113.auditdupes.php | ||
---|---|---|
2–25 | the algorithm is "keep the first one from the liskmigrationiterator" |
Comment Actions
Yep, perfect. Rule seems reasonable to me.
resources/sql/autopatches/20141113.auditdupes.php | ||
---|---|---|
21 | Technically redundant. | |
src/applications/repository/storage/PhabricatorRepositoryAuditRequest.php | ||
30 | Maybe call this key_unique or something -- I've been trying to move names to key_... to make them unambiguous vs columns. |