Skip to content

Prevent duplicate contributors for same company, remove existing #236

Open
@iandunn

Description

Some companies have added the same contributor twice, probably by accident or because they forgot they were already added.

We should prevent that from happening, and remove the existing instances.

Examples

There's probably more, though.

This query helps to find them, but it'll also include folks who are legitimately sponsored by multiple companies. Make sure you don't prevent/remove that.

SELECT post_title, count(*) title_count
FROM `wporg_668_posts`
where post_type = '5ftf_contributor' and post_status = 'publish'
group by post_title
having title_count > 1

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions