akka / akka-persistence-r2dbc

https://doc.akka.io/docs/akka-persistence-r2dbc/current/index.html
Other
24 stars 17 forks source link

fix: insert instead of update state with updated revision during migration #553

Closed sebastian-alfers closed 5 months ago

sebastian-alfers commented 5 months ago

Fixes https://github.com/akka/akka-persistence-r2dbc/issues/552


Very pragmatic approach to fix this issue. I first tried to add another path to make a true upsert during migration, but this caused the complexity of the PostgresDurableStateDao to increase even further. So I tried this version instead, and it seems to work ™️

sebastian-alfers commented 5 months ago

Looking for a different approach here.