ALTER TABLE media ALTER COLUMN media_group_id SET NOT NULL;
