Fixes #5708: Display warning when migrating  directive
Merge pull request #706 from VinceMacBuche/bug_5708/a_warning_should_be_displayed_when_migrating_directive

Fixes #5708: Display warning when migrating  directive