1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

As Designed Delete the user_id from the log tables when a user deletion occurs

Discussion in 'Resolved Bug Reports' started by nodle, Aug 5, 2013.

  1. nodle

    nodle Well-Known Member

    aiman.h.kallaf likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    I called this out as intentional:
    Resetting the IDs may be more detrimental in an adversarial case (multiple users being deleted). Maintaining the IDs still allows things to be traced back (as you could see the users that were deleted from those logs).

    You hit a rather rare case (that involved MySQL restarts or table dumps) that caused the ID to be reused. Obviously it's confusing here, but I think it's the better behavior in the vast majority of cases.
     
  3. nodle

    nodle Well-Known Member

    Ok @Mike I just thought I would post it here in case they might think of a better way of doing it like in your post above. I thought I should just bring it to attention so that maybe there was a better way of handling it. Thanks again for the help.
     

Share This Page