-- Apply this migration manually. Each statement in a separate transaction

ALTER TABLE service.diffalert_task ADD COLUMN user_filter text;
ALTER TABLE service.diffalert_task ALTER COLUMN user_filter SET DEFAULT 'all';
UPDATE service.diffalert_task SET user_filter='all' WHERE user_filter IS NULL;
ALTER TABLE service.diffalert_task ALTER COLUMN user_filter SET NOT NULL;
