I am looking for an advice in the following case.
I set up flyway migration scripts in my production environment. On every deployment the database will be migrated to the
I completely agree with the fact you shouldn't do it.
But if you really need to, you can change the flyway configuration and set the validateOnMigrate boolean as false.
Here's the link: https://flywaydb.org/documentation/commandline/migrate#validateOnMigrate