James E. Blair ac0c988603 Fix approval sync
We're treating some fields in the db as if they have a unique
constraint, but there is no actual unique constraint in the db.
If, somehow, we ended up with multiple approvals for the same
user associated with a change, then the correct values may not
be displayed in the change approval table.

Correct this by detecting when we have multiple local entries
for an approval and remove entries subsequent to the first.
The first entry will remain and either be removed or have its
value updated as necessary.

Change-Id: Ifdc6273f1d5d4e83124ec30ff454c46e3e3af2d3
2015-02-13 07:04:13 -08:00
..
2014-09-18 17:37:13 -07:00
2015-01-21 17:06:46 -08:00
2014-04-29 16:28:49 -07:00
2014-05-07 21:35:07 -04:00
2015-01-07 15:29:52 -08:00
2015-01-21 17:06:42 -08:00
2014-08-01 15:49:30 -07:00
2015-01-23 18:55:52 +00:00
2014-10-03 10:13:56 +01:00
2015-02-13 07:04:13 -08:00
2014-08-30 14:55:53 -07:00