Closed m3techitopsadmin closed 2 years ago
@m3techitopsadmin thanks. It's because there are still events for that account and the proper cascade is not set. However I cannot reproduce this on my side...
I updated the migration none the less, but it might be better if you set the CASCADE option on your database yourself, so that when you delete an account any referencing events are deleted too.
Hi,
Can you provide the mysql script to set this? not to good with MySQL
You can look here for examples: https://www.mysqltutorial.org/mysql-on-delete-cascade/
Getting this error when trying to delete accounts