Page MenuHomePhabricator

Store Donation tracking data in new table
Closed, ResolvedPublic

Description

We forgot to actually store the donation tracking data when refactoring.

Acceptance Criteria

  • The donation_tracking table contains tracking values when a donation gets stored
  • When a donation is read, the code first tries to read from trackingInfo and then falls back to legacy data blob data
  • Existing donations are migrated (no no-symlink deployment needed)

Data migration on deployment

  • create the file migrations-db.php file in the project root directory (current-release), with PDO connection data returned as an array. You can convert the db section from the JSON configuration file into PHP syntax.
  • run data migration script: php8.4 -d display_errors=1 -d memory_limit=4G vendor/wmde/fundraising-donations/bin/migrate-donation-tracking-data.

Event Timeline

tbd:

  • create the file migrations-db.php file in the project root directory (current-release), with PDO connection data returned as an array. You can convert the db section from the JSON configuration file into PHP syntax.
  • run data migration script: php8.4 -d display_errors=1 -d memory_limit=4G vendor/wmde/fundraising-donations/bin/migrate-donation-tracking-data.

When running php8.4 -d display_errors=1 -d memory_limit=4G vendor/wmde/fundraising-donations/bin/migrate-donation-tracking-data the script failed and stated an error in

migrate-donation-tracking-data on line 6,
failing to open autoload.php from the vendor's folder

Try running php8.4 -d display_errors=1 -d memory_limit=4G vendor/bin/migrate-donation-tracking-data instead, that should take care of the autoload problems

that works, thanks!

the script is currently running in screen -r donationTrackingDataMigration since 16:40