This has been a thing for long while, on codex too.

You ask it to do something, then tell it to do something in a different way, then it assumes it needs to do the refactor in a backward compatible way, or creates migrations for it etc.

Omg the "backwards compatible fix" in a one-off script, I feel my ptsd coming on ...