-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
Hello,
When I try to delete a user (which is using the openid plugin to authentificate) from the users administration page I've got the following error:
ActiveRecord::StatementInvalid (Mysql2::Error: Cannot delete or update a parent row: a foreign key constraint fails (`redmine`.`oic_sessions`, CONSTRAINT `fk_rails_fb3c08edd2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)): DELETE FROM `users` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`id` = 5):
I think cascade is missing so user entry for user in oic_sessions are removed when user is delete.
Regards,
Metadata
Metadata
Assignees
Labels
No labels