It was a unique index which prevented selecting multiple payment accounts for an addon. It might make sense to copy the provider over and have a unique constraint on addon_id and provider though.