Fess up. You know it was you.

  • doc
    link
    fedilink
    264 months ago

    UPDATE without a WHERE.

    Yes in prod.

    Yes it can still happen today (not my monkey).

    Yes I wrap everything in a rollback now.

    • @madkins@lemmy.ml
      link
      fedilink
      64 months ago

      I did something similar. It was a list box with a hidden first row representing the id. Somehow the header row got selected and an update where id=id got ran.

    • @Skyhighatrist@lemmy.ca
      link
      fedilink
      44 months ago

      I did this once. But only once. The panic I felt in that moment is something I will never forget. I was able to restore the data from a recent backup before it became a problem, though.