django-easy-audit icon indicating copy to clipboard operation
django-easy-audit copied to clipboard

OperationalError when migrating

Open nakiya opened this issue 6 years ago • 0 comments

I get this error when I try to migrate:

django.db.utils.OperationalError: (1825, "Failed to add the foreign key constraint on table 'easyaudit_crudevent'. Incorrect options in FOREIGN KEY constraint 'renew_cloud/easyaudit_crudevent_user_id_09177b54_fk_renew_customuser_id'")

Note that I have set "init_command": "SET foreign_key_checks = 0;", in database options, but still there's an error being thrown here.

Am I missing some dependency?

nakiya avatar Jul 19 '18 07:07 nakiya