[BUG]: Implement deleting objects in new API that have foreignkey constraints #1157
Labels
bug
Something isn't working
enhancement
Enhancement of existing features / Small addition
server
Hashtopolis API/Server related
Version Information
0.14.3
Hashcat
No response
Description
Currently it is not possible to delete objects in the new API, that have foreignkey constraints. For example, in a hash the foreingkey to hashlist can't be null, but deleting a hashlist doesn't cascade to hash. This means that currently hashlist cant be deleted.
There are 2 possible solutions for this:
Personally I have a slight preference for solution 1, because this requires less additional logic that has to be written. The con of this solution could be that when you for example accidently delete a hashlist in the DB you also lose your hashes, which can be quite problematic.
The text was updated successfully, but these errors were encountered: