michael-simons / neo4j-migrations

Automated script runner aka "Migrations" for Neo4j. Inspired by Flyway.
https://michael-simons.github.io/neo4j-migrations/
Apache License 2.0
111 stars 22 forks source link

repeatable migrations destroy migration chain #1342

Closed shanon84 closed 1 month ago

shanon84 commented 1 month ago

Hey there, we have the following setup: a R001 (xml constraints) a V002 a V003

we changed R001 and times after we added V004.

The problem is: On a database with missing R001 update (and V004) the migration does the following: update R001 (and add a selflink) add V004 and create a link from R001! On the next start the migration crashes, because we have 2 follow up migrations after 001!

Best regards

michael-simons commented 1 month ago

So prior to failing, the database has

michael-simons commented 1 month ago

Ok, can reproduce.

michael-simons commented 1 month ago

Thanks, @shanon84.

Bug-fix release is underway.