Fix migration generation when dropping stored routine