Reverted version of a repeatable script should be reapplied. #1358
What version of Flyway are you using?
Flyway 4.0.3 by Boxfuse
What database are you using (type & version)?
SQL Server 2016 Developer Edition
What operating system are you using?
Microsoft Windows 10
What did you do?
What did you expect to see?
The checksum of the migration changed, so I expected the script would be reapplied.
What did you see instead?
But it wasn't applied. I had a look to the
I think the current scripts' checksum should be compared with the checksums of the latest version of the applied scripts in the database.
That is, if a given checksum is in something like:
select checksum from <schema>.schema_version sv1 where version is null and not exists ( select 1 from <schema>.schema_version sv2 where sv1.script = sv2.script and sv1.installed_rank < sv2.installed_rank )
this way we would still be able to rename a script without applying it again.
The text was updated successfully, but these errors were encountered: