Exception 'yii\db\IntegrityException' with message 'SQLSTATE[23000]: In tegrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constra int fails (mydb.audit_javascript, CONSTRAINT fk_audit_javascript_entry_id FOREIGN KEY (entry_id) REFERENCES audit_entry (id))
The SQL being executed was: DELETE FROM audit_entry WHERE created <= '2018-04-08 23:59:59'
version 1.0.11
php yii audit/cleanup --entry --age=60
Exception 'yii\db\IntegrityException' with message 'SQLSTATE[23000]: In tegrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constra int fails (
mydb
.audit_javascript
, CONSTRAINTfk_audit_javascript_entry_id
FOREIGN KEY (entry_id
) REFERENCESaudit_entry
(id
)) The SQL being executed was: DELETE FROMaudit_entry
WHEREcreated
<= '2018-04-08 23:59:59'