Flyway clean removes public/routines and can't migrate afterwards

I found the answer, turns out there were a strong coupling between migrations written by the previous team on 2 pg extensions, pgcrypto and unaccent that was NOT written as migrations by us but by another container in the stack.

The solution is to let Flyway manage the creation of these extensions.