ALTER TYPE service.export_subset_type RENAME TO export_subset_type_old;

CREATE TYPE service.export_subset_type AS ENUM ('domain', 'service', 'masstransit', 'masstransit2');

ALTER TABLE service.export_task ALTER COLUMN subset DROP DEFAULT;

ALTER TABLE service.export_task
ALTER COLUMN subset
TYPE service.export_subset_type
USING subset::text::service.export_subset_type;

ALTER TABLE service.export_task ALTER COLUMN subset SET DEFAULT 'service';

DROP TYPE service.export_subset_type_old;

