Page MenuHomePhabricator

Create database migration for memberships and adapt entities
Closed, ResolvedPublic2 Estimated Story Points

Description

Acceptance criteria:

  • Entities no longer contain payment objects, just a payment ID
  • There is a migration script to create payment objects for existing memberships

Running the migration is not part of this ticket.

Implementation notes:

  • Create a migration for the request table and "MembershipApplication" entity:
    • Remove the payment property from membership domain and doctrine entity
    • Add paymentId property to membership domain and doctrine entity. We won't interact directly with payment entities from the membership bounded context, only through payment use cases
    • Remove the paymentBankAccountHolder field
    • Create new payments from the contents of the data blob

If you run into mapping trouble, you might want to register the custom data types from payment on your migration script (see PaymentContextFactory)

Event Timeline

gabriel-wmde renamed this task from Create database migration for memberships to Create database migration for memberships and adapt entities.Apr 11 2022, 10:53 AM
gabriel-wmde updated the task description. (Show Details)
gabriel-wmde set the point value for this task to 8.
kai.nissen changed the point value for this task from 8 to 1.
kai.nissen changed the point value for this task from 1 to 2.

While adapting the test to the new database schema, I also fixed T288599: Remove "Specify" testing library for memberships