User data is not deleted when a user is removed
muhammad-ans opened this issue · comments
Ans commented
Description
If we create a 2nd user and delete it the watched data would be still there and would be assigned to the next user created as id of 2nd user would assigned to new user.
Version
nightly
Steps to Reproduce
- Create a 2nd user.
- add some movies as watched
- delete the user
- create new user
- Deleted users history would be assigned to new user.
Screenshots
No response
Logs
No response
Server OS
Fedora Silverblue 39
Client Platform
None
Client Device
No response
Client OS
No response
Client Browser
No response
Additional Context
No response
Lee Peuker commented
Which database are you using?
Lee Peuker commented
I assume you are using SQLite, I just noticed that the foreign key support was not enabled, so the automatic cleanup of orphaned data entries was not happing. This should now be fixed
Ans commented
Yes, was using sqlite.