11
devios1
7y

*Spends the day writing script to back up production nosql databases before applying sweeping schema changes.*

*Accidentally runs the script to apply sweeping changes instead of backup.*

😭

Comments
  • 0
    @234pctCpuUsage Oh I tested it. Worked great. 😄
  • 0
    Luckily it was fine and didn't cause any problems, but man, goes to show you even senior devs fuck up from time to time.

    Dodged a bullet on that one!

    Lesson learned: don't make the means by which you choose between performing a backup and running a system-wide modification differ only by a query parameter!
Add Comment