diff --git a/lib/database/scrub_db.sql b/lib/database/scrub_db.sql index b079c179..185e5464 100644 --- a/lib/database/scrub_db.sql +++ b/lib/database/scrub_db.sql @@ -16,6 +16,8 @@ delete from machine_conditions WHERE created_at < NOW() - INTERVAL '3 years'; delete from machine_score_xrefs WHERE created_at < NOW() - INTERVAL '3 years'; delete from suggested_locations WHERE created_at < NOW() - INTERVAL '3 years'; delete from user_submissions WHERE created_at < NOW() - INTERVAL '3 years'; +delete from user_submissions where submission_type = 'suggest_location'; +delete from user_submissions where submission_type = 'contact_us'; UPDATE users SET username = CONCAT('user', id, random()), @@ -50,4 +52,4 @@ UPDATE operators -- delete from events WHERE created_at < NOW() - INTERVAL '3 years'; -- delete from machine_groups WHERE created_at < NOW() - INTERVAL '3 years'; -- delete from machines WHERE created_at < NOW() - INTERVAL '3 years'; --- delete from region_link_xrefs WHERE created_at < NOW() - INTERVAL '3 years'; \ No newline at end of file +-- delete from region_link_xrefs WHERE created_at < NOW() - INTERVAL '3 years';