ALTER TABLE service.validation_task DROP COLUMN branch;
ALTER TABLE service.export_task DROP COLUMN branch;
ALTER TABLE service.import_task DROP COLUMN branch;
ALTER TABLE service.vrevisions_refresh_task DROP COLUMN branch;

DROP TYPE service.branch_type;

ALTER TABLE service.validation_task ALTER COLUMN branch_id DROP DEFAULT;
ALTER TABLE service.export_task ALTER COLUMN branch_id DROP DEFAULT;
ALTER TABLE service.import_task ALTER COLUMN branch_id DROP DEFAULT;
ALTER TABLE service.vrevisions_refresh_task ALTER COLUMN branch_id DROP DEFAULT;
