-- Allow "clear campaign" actions by permitting NULL sdcampaign_id.
-- The app models campaign history as append-only rows; a NULL sdcampaign_id
-- represents "no campaign assigned" for that variant at that point in time.

ALTER TABLE zbggcampaign
  ALTER COLUMN sdcampaign_id DROP NOT NULL;

