[3.9] Add doctrine migration