Closed SalmanSaleh1 closed 4 months ago
An error prevents the deletion of an event named "دورة", while events named "1" and "course" can be deleted without issues.
I've added a new event called "سلمان" which can be deleted without any issues.
After deleting the project files and rebuilding the Docker Compose, the bug disappeared, indicating that it was caused by files on my computer.
Error! (pymysql.err.IntegrityError) (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (
cgav
.Certificate_table
, CONSTRAINTCertificate_table_ibfk_2
FOREIGN KEY (certificate_event_id
) REFERENCESaddCertificate
(certificate_event_id
))') [SQL: DELETE FROMaddCertificate
WHEREaddCertificate
.certificate_event_id = %(certificate_event_id)s] [parameters: {'certificate_event_id': 1}] (Background on this error at: https://sqlalche.me/e/14/gkpj)