Skip to content

Remove Campaign.Branch field

Created by: mrnugget

With the move to the new workflow we don't need the branch field on Campaign anymore.

  • Remove the branch attribute from campaign in schema.graphql (and generate the schema.go version with ./dev/generate.sh)
  • Remove CampaignResolver.Branch in ./cmd/frontend/graphqlbackend/campaigns.go
  • Remove campaignResolver.Branch() in ./enterprise/internal/campaigns/resolvers/campaigns.go
  • Do not insert/update/read campaigns.branch in ./enterprise/internal/campaigns/store.go
  • Update store_campaigns_test.go accordingly
  • Write a database migration that drops the fields on campaigns.