- Create a migration for the donation table:
- Remove the payment property from donation domain and doctrine entity
- Add paymentId property to donation domain and doctrine entity. We won't interact directly with payment entities from the donation bounded context, only through payment use cases
- Create new payments from the contents of the data blob and the sofort payments
- Delete the old donation_payment and donation_payment_sofort tables
- Running the migration in production is not part of this ticket. But you should run it once with a current data dump to see how long it will take.
- Set the correct next payment ID
Implementation notes:
At this point the payment information should be cleaned up or we have a clear plan for how to handle them (in a non-complictaed way that doesn't add points to this).
Use the legacy mappers from payment to convert legacy data back to the fields (invert mapping array).
You might reuse donation and membership ID as payment ID, the numbers don't overlap.