mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Resolve SQL Error when deleting an account
The account deletion code tries to remove user from PackageNotifications using the wrong column UsersID to identify the user by id. In the PackagePackageNotifications table the foreign key is called UserID. In the future ideally this would be unified into UserID for all tables. Closes: #12 Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
21c457817f
commit
d668ef0bcd
1 changed files with 1 additions and 1 deletions
|
@ -940,7 +940,7 @@ function user_delete($id) {
|
|||
$fields_delete = array(
|
||||
array("Sessions", "UsersID"),
|
||||
array("PackageVotes", "UsersID"),
|
||||
array("PackageNotifications", "UsersID")
|
||||
array("PackageNotifications", "UserID")
|
||||
);
|
||||
|
||||
$fields_set_null = array(
|
||||
|
|
Loading…
Add table
Reference in a new issue