Fess up. You know it was you.

  • doc@kbin.social
    link
    fedilink
    arrow-up
    26
    ·
    9 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
      arrow-up
      6
      ·
      9 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
      arrow-up
      4
      ·
      9 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.