Skip to content

Commit

Permalink
remove new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fiveNinePlusR committed Jan 15, 2025
1 parent 71b7930 commit 2b979af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/database/scrub_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down Expand Up @@ -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';
-- delete from region_link_xrefs WHERE created_at < NOW() - INTERVAL '3 years';

0 comments on commit 2b979af

Please sign in to comment.