dbal icon indicating copy to clipboard operation
dbal copied to clipboard

Change the type of a foreign key field

Open derrabus opened this issue 2 years ago • 1 comments

Bug Report

Q A
Version 3.6

Summary

When we change the type of a foreign key and the referenced column simultaneously, the result should be valid, but the migration fails due to foreign key constraints. We need to make sure that the keys are dropped and recreated properly.

Current behaviour

How to reproduce

See #5991 for a failing test.

Expected behaviour

The test should pass.

derrabus avatar Jul 12 '23 06:07 derrabus

@derrabus Do you have any lead on how this could be achieved ? I could try to spend some time on it but don't know where to start

raphael-geffroy avatar Dec 18 '24 15:12 raphael-geffroy