Closed rob006 closed 1 year ago
I think this might be intentional.
The hotness of discussions is calculated from that table, so deleting a user would cause a discussion to drop in the hotness ranking.
We should probably clarify that it is the intended behavior in the source code if we are ok with this.
I think that there should be FK with SET NULL
for ON DELETE
- it will be clear that this is intended behavior. Right now leaving orphaned IDs in user_id
looks like an oversight.
That makes sense :+1:
Is it intentional that there are no FK between these two tables? Right now if user gets deleted his votes are preserved and I'm not sure if it is expected behavior.