r/ProgrammerHumor • • Oct 05 '26

Meme [ Removed by moderator ]

Post image

[removed] — view removed post

9.4k Upvotes

557 comments sorted by

View all comments

47

u/Single-Virus4935 Oct 05 '26 edited Oct 05 '26

The solution is so simple:

BEGIN TRANSACTION;

DELETE * 
FROM users
WHERE email_verified=0 OR is_admin=0;

if dry_run {
  COMMIT;
} else {
  ROLLBACK;
}

26

u/lllorrr Oct 05 '26

LGTM! Pushed.

14

u/JuvenileEloquent Oct 05 '26

Honestly you're doing the users a favor here, they shouldn't have trusted this site with their data.

6

u/Single-Virus4935 Oct 05 '26

Yes, a proper dry run is a favor for.the users. Imagine there is a bug in the query and all users were lost.

10

u/blueechoes Oct 05 '26

Something is smelly here...

10

u/covidlung Oct 05 '26

That OR just makes sense

5

u/davak72 Oct 05 '26

Ah yes! That ensures no users have to deal with this clown vibe coding in prod 😂

2

u/Academic-Proof3700 Oct 05 '26

"I've decided to not use transactions to speed up the deployment and user didn't mention they are necessary"

0

u/triggerman602 Oct 06 '26

Don't need admins when you don't have users though.