database version upgrade

We use Flyway, and need to upgrade our databases from MySQL 5.7 to 8.0. Our existing SQL will then be invalid, due to some changes in MySQL. However, we can not change the SQL, as Flyway will break. I assume this has been solved many times, apologies but I could not find the answer. 

Best Answer

  • RobynRobyn Posts: 194 Gold 1
    Hi, 

    Thanks for your post!

    Are you referring the migration checksums would change which flyway would object to? 

    If so, this can be solved by running the repair command to recalculate the checksums.
     
    What we would recommend is:
    • take a backup of their scripts, so they can always revert if needed
    • Make the alterations to the SQL
    • Run repair in flyway to recalculate
    I hope this is useful!
    Kind regards

    Robyn Edwards | Redgate Software
    Have you visited our Help Center?

Answers

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file