Skip to content
Snippets Groups Projects

campaigns: patch changeset IDs when migrating

Merged Warren Gifford requested to merge aharvey/fix-changesets-in-migration into main

Created by: LawnGnome

In #13001, I added some "evil" to move campaigns back to their original IDs after everything was created. In my rush to do so, I committed one of the basic mistakes of evil-doing: not considering the broader effects of my evil; namely, that changesets have an effective (but unenforced) foreign key on the campaign in their JSON campaign_ids blobs.

Obviously, the solution here is more evil, in the form of an UPDATE query that patches the JSON en masse. You're welcome?

cc: @marekweb, as we'll need this in 3.19 as well.

Merge request reports

Approval is optional

Merged by avatar (Jun 24, 2025 12:51am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading