My manager was very understanding, and walked me through the procedure to restore the DB from backup.
I learned an extremely important lesson that day, and have always remembered it when I see others screw up.
We ended up sending emails to the board of a multi-billion company containing "bad words" as the dev were filling text fields with insults and whatever during their tests. I didn't get fired but I still think I was very close.