10
My entire project blew up after I fat-fingered a single line of code
Deleted 3 days of database work in like 2 seconds just because I forgot a WHERE clause and now I gotta rebuild everything from scratch, has anyone else made a stupid mistake like this and how did you deal with it?
3 comments
Log in to join the discussion
Log In3 Comments
kai_bennett22d ago
Lost a whole weekend that way. Coping mechanism: crying.
6
ericp6722d ago
Ah man, that's the worst. I read somewhere that forgetting a WHERE clause is literally the number one database mistake people make, it's basically a rite of passage. @kai_bennett I feel you on the crying, I think every dev has done their fair share of that after a wipeout like this. At least now you'll never forget that WHERE again.
3
the_mary21d ago
Twelve years ago I worked at a place where a junior dev did this to their entire customer orders table. The company had to close for two days while they restored from a backup from the previous night. That backup was on tape. Took forever. The owner almost fired the kid on the spot. Looking back, that's probably the real reason most companies make you write SELECT first before DELETE in production. Not a rite of passage so much as a lawsuit waiting to happen.
7