Closed sebastian-alfers closed 3 months ago
If we want to drop the primary key setup, lets close this pr, fix #558, and then do this with a proper upsert?
I agree, that sounds better to me @sebastian-alfers (if we have time to spend on it that is)
Closing this to rework for real upsert since https://github.com/akka/akka-persistence-r2dbc/pull/559 is about to get merged.
Fixes https://github.com/akka/akka-persistence-r2dbc/issues/552, successor of https://github.com/akka/akka-persistence-r2dbc/pull/553.
Before this pr, a new migrated state with an evolved revision was attempted to be
UPDATE
ed which failed as there exists no state to be upgraded.This pr
INSERT
if a state is migrated that does not have an existing revision of its persistence id.UPDATE
if a state is migrated that does have an existing revision of its persistence id.