Cascade delete when a user is deleted #1

Closed
opened 7 years ago by vierbergenlars · 0 comments
Owner

Deleting a user results in a constraint violation:

Error message: An exception occurred while executing 'DELETE FROM auth_users WHERE id = ?' with params [3]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`studforum-test_authserver`.`vierbergenlars_expire_email_validation`, CONSTRAINT `FK_4C119F00A76ED395` FOREIGN KEY (`user_id`) REFERENCES `auth_users` (`id`))
Deleting a user results in a constraint violation: ``` Error message: An exception occurred while executing 'DELETE FROM auth_users WHERE id = ?' with params [3]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`studforum-test_authserver`.`vierbergenlars_expire_email_validation`, CONSTRAINT `FK_4C119F00A76ED395` FOREIGN KEY (`user_id`) REFERENCES `auth_users` (`id`)) ```
vierbergenlars self-assigned this 7 years ago
vierbergenlars added the
bug
label 7 years ago
vierbergenlars started working 7 years ago
vierbergenlars stopped working 7 years ago
6min 48s
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Total Time Spent: 6 minutes 48 seconds
Lars Vierbergen
6 minutes 48 seconds
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: authserver/expire-email-validation#1
Loading…
There is no content yet.