I’m experiencing the same today. I also need to get back online but I’m happy to report what I can.
0.210.2 to 0.213
Migration "DeleteExecutionsWithWorkflows1673268682475" failed, error: Duplicate foreign key constraint name 'FK_execution_entity_workflowId'
execution_entity has 44,776 records due to webhook activity.
Is the expectation that somehow the volume is what is preventing this migration? I’d like to help here, but I can’t be down terribly long. I’ve grown very spoiled to how infrequently anything goes wrong with an update!
Reviewing this simple migration it appears to be that part of the migration completed (no transaction?) so it left behind the changes without marking the migration completed.
I removed the FK and let it rerun and we’re good to go!
Hello again, I got it fixed for my instance. And here are the steps:
I dumped the table execution_entity from the n8n database,
I edit the dump and remove the line " CONSTRAINT FK_execution_entity_workflowId FOREIGN KEY (workflowId) REFERENCES workflow_entity (id) ON DELETE CASCADE
"
I remove the comma before this line, and I saved the edited dump file,